mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-23 17:31:11 +01:00
bug fix: hot fix out of memory problem caused by log read
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user