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 1b29a27ab0
commit 782e5694e6

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