Log number of event channels
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 25 Mar 2010 13:47:50 +0000 (14:47 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 25 Mar 2010 13:47:50 +0000 (14:47 +0100)
This is done after select returns in the main event loop.

src/eventl.c

index e46684d..48c1abd 100644 (file)
@@ -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;