syslog: support not using syslog
This commit is contained in:
parent
27cc67d2cf
commit
fb11c0c27c
|
@ -143,11 +143,13 @@ func Setup(opts *Options) error {
|
|||
|
||||
log.p = priority
|
||||
|
||||
if opts.WriteSyslog {
|
||||
var err error
|
||||
log.l, err = gsyslog.NewLogger(priority, opts.Facility, opts.Tag)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue