diff options
author | n-peugnet <n.peugnet@free.fr> | 2021-09-21 16:05:30 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2021-09-21 16:05:30 +0200 |
commit | ccf3707e5b76140b6e94b9eede5fd7e8873ef187 (patch) | |
tree | b8779468de240c820018f896e688a0e199947a39 /logger/logger_test.go | |
parent | 737b29efd7f63a3b44243fd83cdb67518a82be14 (diff) | |
download | dna-backup-ccf3707e5b76140b6e94b9eede5fd7e8873ef187.tar.gz dna-backup-ccf3707e5b76140b6e94b9eede5fd7e8873ef187.zip |
logger perf don't call Sprint and Sprintf if quiet
Diffstat (limited to 'logger/logger_test.go')
-rw-r--r-- | logger/logger_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |