summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debug.c6
-rw-r--r--debug.h2
-rw-r--r--radsecproxy.c1
3 files changed, 5 insertions, 4 deletions
diff --git a/debug.c b/debug.c
index 80173f5..2b2e07d 100644
--- a/debug.c
+++ b/debug.c
@@ -24,7 +24,7 @@ static char *debug_ident = NULL;
static uint8_t debug_level = DBG_INFO;
static FILE *debug_file = NULL;
static int debug_syslogfacility = 0;
-static uint8_t debug_timestamp = 1;
+static uint8_t debug_timestamp = 0;
void debug_init(char *ident) {
debug_file = stderr;
@@ -49,8 +49,8 @@ void debug_set_level(uint8_t level) {
}
}
-void debug_no_timestamp() {
- debug_timestamp = 0;
+void debug_timestamp_on() {
+ debug_timestamp = 1;
}
uint8_t debug_get_level() {
diff --git a/debug.h b/debug.h
index 761a555..3a0bbc6 100644
--- a/debug.h
+++ b/debug.h
@@ -17,7 +17,7 @@
void debug_init(char *ident);
void debug_set_level(uint8_t level);
-void debug_no_timestamp();
+void debug_timestamp_on();
uint8_t debug_get_level();
void debug(uint8_t level, char *format, ...);
void debugx(int status, uint8_t level, char *format, ...);
diff --git a/radsecproxy.c b/radsecproxy.c
index 9a35c21..80f6a47 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -3526,6 +3526,7 @@ int main(int argc, char **argv) {
if (!foreground && (daemon(0, 0) < 0))
debugx(1, DBG_ERR, "daemon() failed: %s", strerror(errno));
+ debug_timestamp_on();
debug(DBG_INFO, "radsecproxy revision $Rev$ starting");
sigemptyset(&sigset);