Ready to refix the volume things.

This commit is contained in:
zicla
2018-01-29 21:06:59 +08:00
parent dcf78ad6ef
commit 15a70aeadb
7 changed files with 62 additions and 35 deletions

View File

@ -10,7 +10,7 @@ import (
func Log(prefix string, content string) {
//日志输出到文件中
filePath := GetLogPath() + "/tank-" + time.Now().Local().Format("2006-01-02") + ".log"
filePath := CONFIG.LogPath + "/tank-" + time.Now().Local().Format("2006-01-02") + ".log"
f, err := os.OpenFile(filePath, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
if err != nil {
fmt.Errorf("error opening file: %v", err)