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|*)
|
no|*)
|
||||||
;;
|
;;
|
||||||
esac
|
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
|
dnl Hidden debugging options
|
||||||
|
|
10
src/debug.h
10
src/debug.h
|
@ -139,12 +139,20 @@
|
||||||
#define DEBUG_MDNS(...) DEBUG_OFF(__VA_ARGS__)
|
#define DEBUG_MDNS(...) DEBUG_OFF(__VA_ARGS__)
|
||||||
#endif
|
#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) || \
|
#if (defined(SCHED_DEBUG) && SCHED_DEBUG) || \
|
||||||
(defined(STUB_DEBUG) && STUB_DEBUG) || \
|
(defined(STUB_DEBUG) && STUB_DEBUG) || \
|
||||||
(defined(DAEMON_DEBUG) && DAEMON_DEBUG) || \
|
(defined(DAEMON_DEBUG) && DAEMON_DEBUG) || \
|
||||||
(defined(SEC_DEBUG) && SEC_DEBUG) || \
|
(defined(SEC_DEBUG) && SEC_DEBUG) || \
|
||||||
(defined(SERVER_DEBUG) && SERVER_DEBUG) || \
|
(defined(SERVER_DEBUG) && SERVER_DEBUG) || \
|
||||||
(defined(MDNS_DEBUG) && MDNS_DEBUG)
|
(defined(MDNS_DEBUG) && MDNS_DEBUG) || \
|
||||||
|
(defined(ANCHOR_DEBUG) && ANCHOR_DEBUG)
|
||||||
#define DEBUGGING 1
|
#define DEBUGGING 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue