로그 파일 업로드를 비동기로
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user