From 33967236e18c33d0d83b34b76f8238c3d588b21d Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Tue, 14 Sep 2021 15:37:50 +0200 Subject: logger add panic + colors & remove ln variants & use it --- main_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main_test.go') diff --git a/main_test.go b/main_test.go index 57db053..27a3d65 100644 --- a/main_test.go +++ b/main_test.go @@ -4,6 +4,8 @@ import ( "log" "os" "testing" + + "github.com/n-peugnet/dna-backup/logger" ) func TestMain(m *testing.M) { @@ -14,7 +16,7 @@ func TestMain(m *testing.M) { } func setup() { - log.SetFlags(log.Lshortfile) + logger.SetFlags(log.Lshortfile) } func shutdown() {} -- cgit v1.2.3