diff options
author | venaas <venaas> | 2007-05-07 13:03:35 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2007-05-07 13:03:35 +0000 |
commit | aad355533c7afbfde3b95653737e280f70a12bcb (patch) | |
tree | e5937e29d3883c069b2d8aa1be0b356703214571 /debug.c | |
parent | b3e8a445cc1e337ab924e37c6a3b5b0b48162a79 (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.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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() { |