diff --git a/client/operation.go b/client/operation.go index a3186b5..0cbe302 100644 --- a/client/operation.go +++ b/client/operation.go @@ -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) } }