34 lines
831 B
Diff
34 lines
831 B
Diff
From 344a2a8a0eea18db2f24dec7cae395f1e1621db7 Mon Sep 17 00:00:00 2001
|
|
From: Yota Toyama <raviqqe@gmail.com>
|
|
Date: Fri, 17 Aug 2018 01:32:04 +0000
|
|
Subject: [PATCH] Use new constructor for logger
|
|
|
|
---
|
|
utils/log.go | 7 ++-----
|
|
1 file changed, 2 insertions(+), 5 deletions(-)
|
|
|
|
diff --git utils/log.go b/utils/log.go
|
|
index fa4c4e4..135699b 100644
|
|
--- utils/log.go
|
|
+++ utils/log.go
|
|
@@ -6,7 +6,7 @@ import (
|
|
"github.com/motemen/go-colorine"
|
|
)
|
|
|
|
-var logger = &colorine.Logger{
|
|
+var logger = colorine.NewLogger(
|
|
colorine.Prefixes{
|
|
"git": colorine.Verbose,
|
|
"hg": colorine.Verbose,
|
|
@@ -23,10 +23,7 @@ var logger = &colorine.Logger{
|
|
"authorized": colorine.Notice,
|
|
|
|
"error": colorine.Error,
|
|
-
|
|
- "": colorine.Info,
|
|
- },
|
|
-}
|
|
+ }, colorine.Info)
|
|
|
|
func Log(prefix, message string) {
|
|
logger.Log(prefix, message)
|