From e94bb57662a692dd4c0502dfb4569bfa8b811d03 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 25 Mar 2010 14:47:50 +0100 Subject: [PATCH] Log number of event channels This is done after select returns in the main event loop. --- src/eventl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/eventl.c b/src/eventl.c index e46684d..48c1abd 100644 --- a/src/eventl.c +++ b/src/eventl.c @@ -236,6 +236,13 @@ static int event_loop(iochan_man_t man, IOCHAN *iochans) } } } + if (man->log_level) + { + int no = 0; + for (p = *iochans; p; p = p->next) + no++; + yaz_log(man->log_level, "%d channels", no); + } for (p = *iochans; p; p = p->next) { int force_event = p->force_event; -- 1.7.10.4