From 3354a48c35085843975376031bccac9da150285e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B2=B3?= Date: Sat, 14 Dec 2019 12:25:52 +0800 Subject: [PATCH] change default log path --- lib/common/run.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common/run.go b/lib/common/run.go index 30c63c1..bfc4858 100644 --- a/lib/common/run.go +++ b/lib/common/run.go @@ -48,9 +48,9 @@ func IsWindows() bool { func GetLogPath() string { var path string if IsWindows() { - path = GetAppPath() + path = filepath.Join(GetAppPath(), "nps.log") } else { - path = "/tmp" + path = "/var/log/nps.log" } return path }