From cc90d09fae32cd6a17886e2d787ce49a45591607 Mon Sep 17 00:00:00 2001 From: Glenn Date: Sun, 4 Aug 2024 22:42:27 +0200 Subject: [PATCH] fix(logs): switch to STDERR to avoid breaking completion script --- src/main.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cr b/src/main.cr index 28e57a4..baa8d14 100644 --- a/src/main.cr +++ b/src/main.cr @@ -22,7 +22,7 @@ struct BaseFormat < Log::StaticFormatter end Log.setup do |config| - backend = Log::IOBackend.new(formatter: BaseFormat) + backend = Log::IOBackend.new(io: STDERR, formatter: BaseFormat) config.bind "*", Log::Severity::Info, backend if ENV["LOG_LEVEL"]?