Alex Dadgar 6 rokov pred
rodič
commit
7c1f3f3d75
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      mux.go

+ 2 - 0
mux.go

@@ -65,6 +65,8 @@ func VerifyConfig(config *Config) error {
 	}
 	if config.LogOutput != nil && config.Logger != nil {
 		return fmt.Errorf("both Logger and LogOutput may not be set, select one")
+	} else if config.LogOutput == nil && config.Logger == nil {
+		return fmt.Errorf("one of Logger or LogOutput must be set, select one")
 	}
 	return nil
 }