summaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
authorvenaas <venaas>2007-05-07 13:03:35 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-05-07 13:03:35 +0000
commitaad355533c7afbfde3b95653737e280f70a12bcb (patch)
treee5937e29d3883c069b2d8aa1be0b356703214571 /debug.c
parentb3e8a445cc1e337ab924e37c6a3b5b0b48162a79 (diff)
Detach as default, options for foreground and debug level
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@75 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/debug.c b/debug.c
index d7d333b..d852a8d 100644
--- a/debug.c
+++ b/debug.c
@@ -30,7 +30,17 @@ void debug_init(char *ident) {
}
void debug_set_level(uint8_t level) {
- debug_level = level;
+ switch (level) {
+ case 1:
+ debug_level = DBG_ERR;
+ return;
+ case 2:
+ debug_level = DBG_WARN;
+ return;
+ case 3:
+ debug_level = DBG_INFO;
+ return;
+ }
}
uint8_t debug_get_level() {