aboutsummaryrefslogtreecommitdiff
path: root/main_test.go
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-09-14 15:37:50 +0200
committern-peugnet <n.peugnet@free.fr>2021-09-14 15:41:44 +0200
commit33967236e18c33d0d83b34b76f8238c3d588b21d (patch)
tree9bd3334b6eabb7cd3b07d7efb9c4c90aa8726a6d /main_test.go
parentd85847ec99d44e1010a95c71579a754ac9f7c646 (diff)
downloaddna-backup-33967236e18c33d0d83b34b76f8238c3d588b21d.tar.gz
dna-backup-33967236e18c33d0d83b34b76f8238c3d588b21d.zip
logger add panic + colors & remove ln variants & use it
Diffstat (limited to 'main_test.go')
-rw-r--r--main_test.go4
1 files changed, 3 insertions, 1 deletions
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() {}