로그 파일 업로드를 비동기로
This commit is contained in:
@ -473,7 +473,7 @@ func (hc *houstonClient) launch(meta *procmeta) error {
|
|||||||
}
|
}
|
||||||
total += len(buff)
|
total += len(buff)
|
||||||
|
|
||||||
if total > 1024 {
|
if total > 1024*1024 {
|
||||||
wipeLogFile()
|
wipeLogFile()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -513,7 +513,7 @@ func (hc *houstonClient) launch(meta *procmeta) error {
|
|||||||
if targetFile != nil {
|
if targetFile != nil {
|
||||||
targetFile.Close()
|
targetFile.Close()
|
||||||
targetFile = nil
|
targetFile = nil
|
||||||
hc.uploadRawLogFile(currentFilePath, meta.name, meta.version)
|
go hc.uploadRawLogFile(currentFilePath, meta.name, meta.version)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user