From 043be13e6d7c47d1bc17e7005c983f4d89a6a489 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 26055f05..dfaf512f 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, })