mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-11-02 21:35:36 +08:00
fix: Resolve the error in reading container logs (#8965)
This commit is contained in:
parent
46a2c3f81b
commit
ed2e305508
1 changed files with 1 additions and 1 deletions
|
|
@ -945,7 +945,7 @@ func collectLogs(params dto.StreamLog, messageChan chan<- string, errorChan chan
|
|||
message := scanner.Text()
|
||||
select {
|
||||
case messageChan <- message:
|
||||
case <-time.After(time.Second):
|
||||
case <-time.After(5 * time.Second):
|
||||
errorChan <- fmt.Errorf("message channel blocked")
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue