mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-29 01:34:09 +09:00
Send logs to stderr, rather than stdout
This commit is contained in:
1 parent
fb203a2e45
commit
043be13e6d
1 file changed
+1
-1
@@ -48,7 +48,7 @@ func main() {
|
|||||||
|
|
||||||
zerolog.TimeFieldFormat = zerolog.TimeFormatUnix
|
zerolog.TimeFieldFormat = zerolog.TimeFormatUnix
|
||||||
log.Logger = log.Output(zerolog.ConsoleWriter{
|
log.Logger = log.Output(zerolog.ConsoleWriter{
|
||||||
Out: os.Stdout,
|
Out: os.Stderr,
|
||||||
TimeFormat: time.RFC3339,
|
TimeFormat: time.RFC3339,
|
||||||
NoColor: !colors,
|
NoColor: !colors,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user