forked from libevent/libevent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add event_enable_debug_logging() to control use of debug logs
Previously, debug logs were turned on if you built with -DUSE_DEBUG and off otherwise. This make builds with -DUSE_DEBUG hideously slow and other builds unable to get debug logs. This is based off a patch by Ralph Castain from October. It tries a little harder to avoid needless function calls, it doesn't require stdbool, and makes the controlling parameter a mask rather than a boolean so that we can later support enabling only the debugging messages for the parts of Libevent you're trying to debug.
- Loading branch information
1 parent
b8b8aa5
commit e30a82f
Showing
3 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters