bug fix: hot fix out of memory problem caused by log read

This commit is contained in:
hantmac
2019-08-30 18:01:22 +08:00
parent 0512757166
commit c481c66484

View File

@@ -35,6 +35,7 @@ func GetLocalLog(logPath string) (fileBytes []byte, err error) {
if err != nil {
log.Error(err.Error())
debug.PrintStack()
return nil, err
}
logBuf = logBuf[:n]
return logBuf, nil