From a9402e5d8e75f7f361a5754e91180ed4f4ee98e1 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Tue, 2 Feb 2010 09:47:58 -0500 Subject: Enable debug_timestamps by default It can be overridden in the sssd.conf or on the commandline with --debug-timestamps=0 --- server/util/debug.c | 2 +- server/util/util.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'server/util') 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 -- cgit