From 5bf4b536e220ab68108d0c65c873f7bc222507b9 Mon Sep 17 00:00:00 2001 From: Romain Date: Mon, 5 Aug 2024 16:56:34 +0200 Subject: [PATCH] Change logs output from stderr to stdout --- cmd/traefik/logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/traefik/logger.go b/cmd/traefik/logger.go index c4f6c9dc1..8ba6ac682 100644 --- a/cmd/traefik/logger.go +++ b/cmd/traefik/logger.go @@ -46,7 +46,7 @@ func setupLogger(staticConfiguration *static.Configuration) { } func getLogWriter(staticConfiguration *static.Configuration) io.Writer { - var w io.Writer = os.Stderr + var w io.Writer = os.Stdout if staticConfiguration.Log != nil && len(staticConfiguration.Log.FilePath) > 0 { _, _ = os.OpenFile(staticConfiguration.Log.FilePath, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0o666)