* failure, all kinds of bad things happen. Oh
* well.
*/
- DEBUG4("Corralling events (%s wait)", wait_for_events ? "will" : "will not");
+ DEBUG3("Gathering events - %s", wait_for_events ? "will wait" : "Will not wait");
num_events = fr_event_corral(el, fr_time(), wait_for_events);
if (num_events < 0) {
RPERROR("Failed retrieving events");
break;
}
+ DEBUG3("%u event(s) pending%s",
+ num_events == -1 ? 0 : num_events, num_events == -1 ? " - event loop exiting" : "");
+
/*
* We were NOT waiting, AND there are no more
* events to run, AND there are no more requests
* setting new timers.
*/
if (num_events > 0) {
- DEBUG4("Servicing events");
+ DEBUG4("Servicing event(s)");
fr_event_service(el);
}