diff options
author | venaas <venaas> | 2007-05-09 13:39:17 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2007-05-09 13:39:17 +0000 |
commit | 6451a360b336e8607ef3b4e6af88d3dbccf995dd (patch) | |
tree | 19d3cb913410de7115ff1f613fda45030e8fd983 /debug.c | |
parent | 2311c004d373668664e36a0094cee74b86551def (diff) |
4 debug levels, 3 default
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@78 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'debug.c')
-rw-r--r-- | debug.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -19,7 +19,7 @@ #include "debug.h" static char *debug_ident = NULL; -static uint8_t debug_level = DBG_WARN; +static uint8_t debug_level = DBG_INFO; static FILE *debug_file = NULL; static int debug_syslogfacility = 0; @@ -40,6 +40,9 @@ void debug_set_level(uint8_t level) { case 3: debug_level = DBG_INFO; return; + case 4: + debug_level = DBG_DBG; + return; } } @@ -90,6 +93,9 @@ void debug_logit(uint8_t level, const char *format, va_list ap) { if (debug_syslogfacility) { switch (level) { + case DBG_DBG: + priority = LOG_DEBUG; + break; case DBG_INFO: priority = LOG_INFO; break; |