void-packages/srcpkgs/ghq/patches/142bf317f76150d64b1448fb4b77f0bc12ee0817.patch
2018-08-25 13:55:49 -03:00

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)