From: Adam Dickmeiss Date: Thu, 25 Mar 2010 13:47:50 +0000 (+0100) Subject: Log number of event channels X-Git-Tag: v1.4.0~54 X-Git-Url: http://git.indexdata.com/?p=pazpar2-moved-to-github.git;a=commitdiff_plain;h=e94bb57662a692dd4c0502dfb4569bfa8b811d03 Log number of event channels This is done after select returns in the main event loop. --- 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;