Add some more debug statements to allow easier eloop monitoring.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
return -errno;
}
+ log_debug("eloop: create eloop object\n");
*out = loop;
return 0;
}
if (--loop->ref)
return;
+ log_debug("eloop: destroy eloop object\n");
close(loop->efd);
free(loop);
}
/* dispatch fd events */
count = epoll_wait(loop->efd, ep, 32, timeout);
- if (count < 0)
+ if (count < 0) {
+ log_warning("eloop: epoll_wait dispatching failed\n");
return -errno;
+ }
+
+ log_debug("eloop: dispatch %d fd event(s)\n", count);
loop->cur_fds = ep;
loop->cur_fds_cnt = count;