projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make logging configurable
[citadel.git]
/
citadel
/
modules
/
c-ares-dns
/
serv_c-ares-dns.c
diff --git
a/citadel/modules/c-ares-dns/serv_c-ares-dns.c
b/citadel/modules/c-ares-dns/serv_c-ares-dns.c
index d1b1a027e5f86d2ac33acdad19115058585d4b69..13e156a80879a3ecb17ceb7e8e318d839a59cea9 100644
(file)
--- a/
citadel/modules/c-ares-dns/serv_c-ares-dns.c
+++ b/
citadel/modules/c-ares-dns/serv_c-ares-dns.c
@@
-57,6
+57,7
@@
#include "ctdl_module.h"
#include "event_client.h"
#include "ctdl_module.h"
#include "event_client.h"
+int DebugCAres = 0;
extern struct ev_loop *event_base;
extern struct ev_loop *event_base;
@@
-609,11
+610,16
@@
void SockStateCb(void *data, int sock, int read, int write)
ev_io_stop(event_base, &IO->DNS.send_event);
}
}
ev_io_stop(event_base, &IO->DNS.send_event);
}
}
+void EnableDebugCAres(void)
+{
+ DebugCAres = 1;
+}
CTDL_MODULE_INIT(c_ares_client)
{
if (!threading)
{
CTDL_MODULE_INIT(c_ares_client)
{
if (!threading)
{
+ CtdlRegisterDebugFlagHook(HKEY("cares"), EnableDebugCAres);
int r = ares_library_init(ARES_LIB_INIT_ALL);
if (0 != r) {
int r = ares_library_init(ARES_LIB_INIT_ALL);
if (0 != r) {