From 36ca3e3411cd3193c84a71c935881ceab3b61055 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 30 Aug 1998 05:57:21 +0000 Subject: don't put two spaces at the start of lines if logging to stdout or not timestamping. (This used to be commit 70ed0ec202c50655e3ba99535b06ad918409051e) --- source3/lib/debug.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/lib/debug.c') diff --git a/source3/lib/debug.c b/source3/lib/debug.c index 6469a3ca6c..c20229fcde 100644 --- a/source3/lib/debug.c +++ b/source3/lib/debug.c @@ -427,11 +427,13 @@ static void bufr_print( void ) static void format_debug_text( char *msg ) { int i; + BOOL timestamp = (!stdout_logging && (lp_timestamp_logs() || + !(lp_loaded()))); for( i = 0; msg[i]; i++ ) { /* Indent two spaces at each new line. */ - if( 0 == format_pos ) + if(timestamp && 0 == format_pos) { format_bufr[0] = format_bufr[1] = ' '; format_pos = 2; -- cgit