projects
/
libradsec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
4 debug levels, 3 default
[libradsec.git]
/
debug.c
diff --git
a/debug.c
b/debug.c
index
d852a8d
..
c36a7be
100644
(file)
--- a/
debug.c
+++ b/
debug.c
@@
-19,7
+19,7
@@
#include "debug.h"
static char *debug_ident = NULL;
#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;
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 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) {
if (debug_syslogfacility) {
switch (level) {
+ case DBG_DBG:
+ priority = LOG_DEBUG;
+ break;
case DBG_INFO:
priority = LOG_INFO;
break;
case DBG_INFO:
priority = LOG_INFO;
break;