summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-08-30 05:57:21 +0000
committerAndrew Tridgell <tridge@samba.org>1998-08-30 05:57:21 +0000
commit70ed0ec202c50655e3ba99535b06ad918409051e (patch)
treeb906a7fc8aec1bab1c4399768c735391297e3c3f /source/lib
parentc4a8cdc60a5b01894ab2456e77b6d89d4c16a088 (diff)
downloadsamba-70ed0ec202c50655e3ba99535b06ad918409051e.tar.gz
samba-70ed0ec202c50655e3ba99535b06ad918409051e.tar.xz
samba-70ed0ec202c50655e3ba99535b06ad918409051e.zip
don't put two spaces at the start of lines if logging to stdout
or not timestamping.
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/debug.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/lib/debug.c b/source/lib/debug.c
index 6469a3ca6ca..c20229fcdeb 100644
--- a/source/lib/debug.c
+++ b/source/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;