Skip to content

Commit ed2e305

Browse files
fix: Resolve the error in reading container logs (#8965)
1 parent 46a2c3f commit ed2e305

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/app/service/container.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ func collectLogs(params dto.StreamLog, messageChan chan<- string, errorChan chan
945945
message := scanner.Text()
946946
select {
947947
case messageChan <- message:
948-
case <-time.After(time.Second):
948+
case <-time.After(5 * time.Second):
949949
errorChan <- fmt.Errorf("message channel blocked")
950950
return
951951
}

0 commit comments

Comments
 (0)