binarylog: no warning if no config string is set (is empty string) ()

This commit is contained in:
Menghan Li
2018-11-01 14:31:10 -07:00
committed by GitHub
parent 61c3ec866d
commit 0efb1e105d

@ -45,6 +45,9 @@ import (
// If two configs exist for one certain method or service, the one specified
// later overrides the privous config.
func NewLoggerFromConfigString(s string) Logger {
if s == "" {
return nil
}
l := newEmptyLogger()
methods := strings.Split(s, ",")
for _, method := range methods {