Explorar el Código

change default log path

刘河 hace 5 años
padre
commit
3354a48c35
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      lib/common/run.go

+ 2 - 2
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
 }