From 29af4335be940c7ae3bad5572022a6cc1cd0cebf Mon Sep 17 00:00:00 2001 From: byene0923 Date: Fri, 10 May 2024 13:33:28 +0800 Subject: [PATCH] refactor: add debug log for test epoll LT and ET --- poller_epoll.go | 1 + 1 file changed, 1 insertion(+) diff --git a/poller_epoll.go b/poller_epoll.go index 5b84d331..2a4f992e 100644 --- a/poller_epoll.go +++ b/poller_epoll.go @@ -241,6 +241,7 @@ func (p *poller) readWriteLoop() { default: // for socket connections c := p.getConn(fd) if c != nil { + logging.Debug("NBIO[%v][%v_%v] trigger event, value: %v, mod: %v", p.g.Name, p.pollType, p.index, ev.Events, p.g.EpollMod) if ev.Events&epollEventsWrite != 0 { if c.onConnected == nil { c.flush()