5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-22 23:25:39 +00:00

cmd/yggdrasil: do not log timestamps to syslog

It is expected a syslog implementation be it rsyslog or journald to
have their own timestamping, so there's no point in duplicating that
info.

Signed-off-by: Oleksandr Natalenko <oleksandr@natalenko.name>
This commit is contained in:
Oleksandr Natalenko 2023-06-08 21:44:46 +02:00
parent 2eda59d9e4
commit f6c0d8406d

View File

@ -69,7 +69,7 @@ func main() {
case "syslog": case "syslog":
if syslogger, err := gsyslog.NewLogger(gsyslog.LOG_NOTICE, "DAEMON", version.BuildName()); err == nil { if syslogger, err := gsyslog.NewLogger(gsyslog.LOG_NOTICE, "DAEMON", version.BuildName()); err == nil {
logger = log.New(syslogger, "", log.Flags()) logger = log.New(syslogger, "", log.Flags() &^ (log.Ldate | log.Ltime))
} }
default: default: