Skip to content

Commit

Permalink
binarylog: no warning if no config string is set (is empty string) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
menghanl authored Nov 1, 2018
1 parent 61c3ec8 commit 0efb1e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/binarylog/env_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0efb1e1

Please sign in to comment.