From 0cbb440a73342ac9b52da6738986c700ab42790f Mon Sep 17 00:00:00 2001 From: zseeker <675211118@qq.com> Date: Wed, 23 May 2018 18:05:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9glog=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=8D=A2=E8=A1=8C=E7=AC=A6=E5=88=9D=E5=88=9D=E5=A7=8B=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- g/os/glog/glog_logger.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/g/os/glog/glog_logger.go b/g/os/glog/glog_logger.go index 5c76fdf81..cc9ef47eb 100644 --- a/g/os/glog/glog_logger.go +++ b/g/os/glog/glog_logger.go @@ -25,7 +25,7 @@ const ( ) // 默认的日志换行符 -var ln string +var ln = "\n" // 初始化日志换行符 // @author zseeker @@ -33,9 +33,7 @@ var ln string func init() { if runtime.GOOS == "windows" { ln = "\r\n" - } else { - ln = "\n" - } + } } // 设置BacktraceSkip