summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--bgpd.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd.go b/bgpd.go
index 9c2b4c4f..0d466adb 100644
--- a/bgpd.go
+++ b/bgpd.go
@@ -41,7 +41,7 @@ func main() {
var opts struct {
ConfigFile string `short:"f" long:"config-file" description:"specifying a config file"`
LogLevel string `short:"l" long:"log-level" description:"specifying log level"`
- LogJson bool `short:"j" long:"log-json" description:"use json format for logging"`
+ LogPlain bool `short:"p" long:"log-plain" description:"use plain format for logging (json by default)"`
UseSyslog string `short:"s" long:"syslog" description:"use syslogd"`
}
_, err := flags.Parse(&opts)
@@ -78,7 +78,7 @@ func main() {
}
}
- if opts.LogJson {
+ if opts.LogPlain == false {
log.SetFormatter(&log.JSONFormatter{})
}