合并杂项功能服务器节点到multi服务器节点
This commit is contained in:
1 parent
64699c23d7
commit
6cca998915
42 files changed
+344
-647
No files matched your search
@@ -156,7 +156,7 @@ func (l *Logger) writeLogFile(logStr string) {
|
||||
fmt.Printf(RED+"rename old log file error: %v\n"+RESET, err)
|
||||
return
|
||||
}
|
||||
file, err := os.OpenFile("./"+l.AppName+".log", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0644)
|
||||
file, err := os.OpenFile("./log/"+l.AppName+".log", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0644)
|
||||
if err != nil {
|
||||
fmt.Printf(RED+"open new log file error: %v\n"+RESET, err)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user