diff --git a/syslog.go b/syslog.go index a9ed9ea..d9561ba 100644 --- a/syslog.go +++ b/syslog.go @@ -101,7 +101,7 @@ func (this *sysLog) addLog(category int32, prefixStr string, p.logMsg = q5.FormatUnixDateTime(_app.GetNowSeconds(), _app.GetLocation()) + prefixStr + " " + fmt.Sprintf(format, args...) + "\n" - if category == LOG_INFO { + if category == LOG_INFO || q5.IsDebug() { fmt.Print(p.logMsg) } this.msgMutex.Lock()