23 lines
540 B
Plaintext
23 lines
540 B
Plaintext
From 59645b0fe39657b3d383bc5494e8a08c494cf195 Mon Sep 17 00:00:00 2001
|
|
From: sfanxiang <sfanxiang@gmail.com>
|
|
Date: Sun, 7 Jan 2018 06:03:44 +0000
|
|
Subject: port to go 1.3
|
|
|
|
|
|
diff --git a/log.go b/log.go
|
|
index fa4bb4c..a24727a 100644
|
|
--- a/log.go
|
|
+++ b/log.go
|
|
@@ -51,7 +51,7 @@ func log_debug(msg string, a ...interface{}) {
|
|
defer log.SetFlags(log.Flags())
|
|
log.SetFlags(log.Flags() | log.Lshortfile)
|
|
msg = fmt.Sprintf(msg, a...)
|
|
- log.Output(2, msg)
|
|
+ log.Print(msg)
|
|
}
|
|
|
|
func logMsg(format, msg string, a ...interface{}) {
|
|
--
|
|
2.15.0
|
|
|