mirror of https://github.com/getdnsapi/getdns.git
Debugging for anchor management
This commit is contained in:
parent
15b451d71b
commit
767ca21bc0
|
@ -201,6 +201,13 @@ case "$enable_debug_server" in
|
|||
no|*)
|
||||
;;
|
||||
esac
|
||||
case "$enable_debug_anchor" in
|
||||
yes)
|
||||
AC_DEFINE_UNQUOTED([ANCHOR_DEBUG], [1], [Define this enable printing of anchor debugging messages.])
|
||||
;;
|
||||
no|*)
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
dnl Hidden debugging options
|
||||
|
|
10
src/debug.h
10
src/debug.h
|
@ -139,12 +139,20 @@
|
|||
#define DEBUG_MDNS(...) DEBUG_OFF(__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#if defined(ANCHOR_DEBUG) && ANCHOR_DEBUG
|
||||
#include <time.h>
|
||||
#define DEBUG_ANCHOR(...) DEBUG_ON(__VA_ARGS__)
|
||||
#else
|
||||
#define DEBUG_ANCHOR(...) DEBUG_OFF(__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#if (defined(SCHED_DEBUG) && SCHED_DEBUG) || \
|
||||
(defined(STUB_DEBUG) && STUB_DEBUG) || \
|
||||
(defined(DAEMON_DEBUG) && DAEMON_DEBUG) || \
|
||||
(defined(SEC_DEBUG) && SEC_DEBUG) || \
|
||||
(defined(SERVER_DEBUG) && SERVER_DEBUG) || \
|
||||
(defined(MDNS_DEBUG) && MDNS_DEBUG)
|
||||
(defined(MDNS_DEBUG) && MDNS_DEBUG) || \
|
||||
(defined(ANCHOR_DEBUG) && ANCHOR_DEBUG)
|
||||
#define DEBUGGING 1
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue