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

Merge pull request #1042 from pfactum/syslog-no-timestamp

cmd/yggdrasil: do not log timestamps to syslog
This commit is contained in:
Neil 2023-10-11 23:58:12 +01:00 committed by GitHub
commit 854cd75f04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,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: