From e3acc958598ca968a41c4d5dfe91826f1d1a1cff Mon Sep 17 00:00:00 2001 From: Juan Font Date: Fri, 11 Aug 2023 15:52:03 +0000 Subject: [PATCH] Send logs to stderr, rather than stdout --- cmd/headscale/headscale.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/headscale/headscale.go b/cmd/headscale/headscale.go index 26055f0..dfaf512 100644 --- a/cmd/headscale/headscale.go +++ b/cmd/headscale/headscale.go @@ -48,7 +48,7 @@ func main() { zerolog.TimeFieldFormat = zerolog.TimeFormatUnix log.Logger = log.Output(zerolog.ConsoleWriter{ - Out: os.Stdout, + Out: os.Stderr, TimeFormat: time.RFC3339, NoColor: !colors, })