feat: 添加更多debug日志、checker url可控化

This commit is contained in:
Mmx233
2022-03-02 23:06:29 +08:00
parent fc94672038
commit 53f813c230
8 changed files with 41 additions and 16 deletions

View File

@@ -26,7 +26,7 @@ func (c *loG) Init(debug, logFile, outPut bool, path string) error {
c.timeStamp = time.Now().Format("2006.01.02-15.04.05")
//日志路径初始化与处理
if c.DebugMode {
if c.DebugMode && c.WriteFile {
if !strings.HasSuffix(path, "/") {
path += "/"
}