feat: 给日志输出结果加上时间标记

This commit is contained in:
xiaobo 2022-12-13 17:39:24 +08:00
parent abd2ba0947
commit 5072844ac3

View File

@ -26,6 +26,7 @@ func init() {
func LogSuccess(result string) {
LogWG.Add(1)
LogSucTime = time.Now().Unix()
result = fmt.Sprintf("[%v] %v", time.Unix(LogSucTime, 0).Format("2006-01-02 15:04:05"), result)
Results <- &result
}