]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
print out where the FD came from when doing EVENT_DEBUG
authorAlan T. DeKok <aland@freeradius.org>
Thu, 16 Sep 2021 00:27:56 +0000 (20:27 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 16 Sep 2021 00:27:56 +0000 (20:27 -0400)
which is enormously more useful than "did fd stuff."

src/lib/util/event.c

index ed8f87b2c5a12a02799d84873d8f2d730727d041..42b2417ef04f3564ada2e937d63fa06dbbe65ef3 100644 (file)
@@ -2429,6 +2429,10 @@ void fr_event_service(fr_event_list_t *el)
                        }
 
                service:
+#ifndef NDEBUG
+                       EVENT_DEBUG("Running event for fd %d, from %s[%d]", ef->fd, ef->file, ef->line);
+#endif
+
                        /*
                         *      Service the event_fd events
                         */