From ccf3707e5b76140b6e94b9eede5fd7e8873ef187 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Tue, 21 Sep 2021 16:05:30 +0200 Subject: logger perf don't call Sprint and Sprintf if quiet --- logger/logger_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'logger/logger_test.go') diff --git a/logger/logger_test.go b/logger/logger_test.go index b02fd29..2352856 100644 --- a/logger/logger_test.go +++ b/logger/logger_test.go @@ -119,7 +119,7 @@ func TestFlags(t *testing.T) { if !strings.Contains(s, "info 0") { t.Errorf("log output %q should contain: info 0", s) } - path := "logger/logger_test.go" + path := "logger/logger_test.go:117" if !strings.Contains(s, path) { t.Errorf("log output %q should contain: %s", s, path) } -- cgit v1.2.3