summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--btpd/btpd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/btpd/btpd.c b/btpd/btpd.c
index 365573f..7f905f9 100644
--- a/btpd/btpd.c
+++ b/btpd/btpd.c
@@ -109,7 +109,11 @@ btpd_init(void)
 
     btpd.version = BTPD_VERSION;
 
-    btpd.logmask = BTPD_L_BTPD | BTPD_L_ERROR;
+#ifdef DEBUG
+    btpd.logmask = BTPD_L_ALL;
+#else
+    btpd.logmask =  BTPD_L_BTPD | BTPD_L_ERROR;
+#endif
 
     BTPDQ_INIT(&btpd.kids);