From afe3e515077fd945fd9257884b89caace4147aa8 Mon Sep 17 00:00:00 2001 From: Kuba Kaflik Date: Fri, 30 Aug 2024 10:55:09 +0200 Subject: [PATCH] Log debug default to stderr --- conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conn.go b/conn.go index 6d831a0478..cc184fceef 100644 --- a/conn.go +++ b/conn.go @@ -65,7 +65,7 @@ func dial(ctx context.Context, addr string, num int, opt *Options) (*connect, er ) } } else { - debugf = log.New(os.Stdout, fmt.Sprintf("[clickhouse][conn=%d][%s]", num, conn.RemoteAddr()), 0).Printf + debugf = log.New(os.Stderr, fmt.Sprintf("[clickhouse][conn=%d][%s]", num, conn.RemoteAddr()), 0).Printf } } compression := CompressionNone