binarylog: no warning if no config string is set (is empty string) (#2430)
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user