로그 파일 업로드를 비동기로

This commit is contained in:
2024-11-07 11:43:04 +09:00
parent 99e1007012
commit 4d6665b64a

View File

@ -473,7 +473,7 @@ func (hc *houstonClient) launch(meta *procmeta) error {
}
total += len(buff)
if total > 1024 {
if total > 1024*1024 {
wipeLogFile()
}
}
@ -513,7 +513,7 @@ func (hc *houstonClient) launch(meta *procmeta) error {
if targetFile != nil {
targetFile.Close()
targetFile = nil
hc.uploadRawLogFile(currentFilePath, meta.name, meta.version)
go hc.uploadRawLogFile(currentFilePath, meta.name, meta.version)
}
}