aboutsummaryrefslogtreecommitdiff
path: root/logger/logger_test.go
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-09-21 16:05:30 +0200
committern-peugnet <n.peugnet@free.fr>2021-09-21 16:05:30 +0200
commitccf3707e5b76140b6e94b9eede5fd7e8873ef187 (patch)
treeb8779468de240c820018f896e688a0e199947a39 /logger/logger_test.go
parent737b29efd7f63a3b44243fd83cdb67518a82be14 (diff)
downloaddna-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.go2
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)
}