From b932fb8ccaafdda0de6852412e441d677b3c48cc Mon Sep 17 00:00:00 2001 From: ningmingxiao Date: Tue, 20 Aug 2024 16:36:19 +0800 Subject: [PATCH] fix event lost --- event.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/event.go b/event.go index ce1fb502..cb60e331 100644 --- a/event.go +++ b/event.go @@ -7,6 +7,7 @@ package docker import ( "encoding/json" "errors" + "fmt" "io" "math" "net" @@ -339,6 +340,7 @@ func (eventState *eventMonitoringState) sendEvent(event *APIEvents) { select { case listener <- event: default: + fmt.Printf("event not sent to listener %#v \n", event) } } }