summaryrefslogtreecommitdiffstats
path: root/server/util
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-02-02 09:47:58 -0500
committerStephen Gallagher <sgallagh@redhat.com>2010-02-05 09:43:42 -0500
commita9402e5d8e75f7f361a5754e91180ed4f4ee98e1 (patch)
tree758a40968c728990438fbb404bb7fd885aaddfcf /server/util
parent45febf05db2be90441119d96a53e56be22dc1e96 (diff)
downloadsssd-a9402e5d8e75f7f361a5754e91180ed4f4ee98e1.tar.gz
sssd-a9402e5d8e75f7f361a5754e91180ed4f4ee98e1.tar.xz
sssd-a9402e5d8e75f7f361a5754e91180ed4f4ee98e1.zip
Enable debug_timestamps by default
It can be overridden in the sssd.conf or on the commandline with --debug-timestamps=0
Diffstat (limited to 'server/util')
-rw-r--r--server/util/debug.c2
-rw-r--r--server/util/util.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/server/util/debug.c b/server/util/debug.c
index aa34e57ff..d26d31c95 100644
--- a/server/util/debug.c
+++ b/server/util/debug.c
@@ -32,7 +32,7 @@
const char *debug_prg_name = "sssd";
int debug_level = 0;
-int debug_timestamps = 0;
+int debug_timestamps = 1;
int debug_to_file = 0;
const char *debug_log_file = "sssd";
diff --git a/server/util/util.h b/server/util/util.h
index a639b1927..2ea624647 100644
--- a/server/util/util.h
+++ b/server/util/util.h
@@ -60,8 +60,8 @@ errno_t set_debug_file_from_fd(const int fd);
"Debug level", NULL}, \
{"debug-to-files", 'f', POPT_ARG_NONE, &debug_to_file, 0, \
"Send the debug output to files instead of stderr", NULL }, \
- {"debug-timestamps", 0, POPT_ARG_NONE, &debug_timestamps, 0, \
- "Add debug timestamps", NULL},
+ {"debug-timestamps", 0, POPT_ARG_INT, &debug_timestamps, 0, \
+ "Add debug timestamps", NULL},
/** \def DEBUG(level, body)
\brief macro to generate debug messages