diff options
Diffstat (limited to 'gobgpd/main.go')
-rw-r--r-- | gobgpd/main.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go index 89f3126a..04c2b262 100644 --- a/gobgpd/main.go +++ b/gobgpd/main.go @@ -148,7 +148,13 @@ func main() { } } - if opts.LogPlain == false { + if opts.LogPlain { + if opts.DisableStdlog { + log.SetFormatter(&log.TextFormatter{ + DisableColors: true, + }) + } + } else { log.SetFormatter(&log.JSONFormatter{}) } |