From 6c1d176dc9ad42d14727778248ec68628cb4daa1 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 14 Jul 2009 17:01:26 -0400 Subject: Add option to add timestamps to debug output use '--debug-timestamps' at the command line or set 'debug-timestamps = TRUE' in the configuration file. --- server/monitor/monitor.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'server/monitor') diff --git a/server/monitor/monitor.c b/server/monitor/monitor.c index 11c35d0f..269fcbf5 100644 --- a/server/monitor/monitor.c +++ b/server/monitor/monitor.c @@ -763,9 +763,11 @@ static int get_service_config(struct mt_ctx *ctx, const char *name, } if (!svc->command) { - svc->command = talloc_asprintf(svc, "%s/sssd_%s -d %d", - SSSD_LIBEXEC_PATH, svc->name, - debug_level); + svc->command = talloc_asprintf(svc, "%s/sssd_%s -d %d%s", + SSSD_LIBEXEC_PATH, + svc->name, debug_level, + (debug_timestamps? + " --debug-timestamps":"")); if (!svc->command) { talloc_free(svc); return ENOMEM; @@ -870,8 +872,9 @@ static int get_provider_config(struct mt_ctx *ctx, const char *name, /* if there are no custom commands, build a default one */ if (!svc->command) { svc->command = talloc_asprintf(svc, - "%s/sssd_be -d %d --provider %s --domain %s", + "%s/sssd_be -d %d%s --provider %s --domain %s", SSSD_LIBEXEC_PATH, debug_level, + (debug_timestamps?" --debug-timestamps":""), svc->provider, svc->name); if (!svc->command) { talloc_free(svc); -- cgit