summaryrefslogtreecommitdiff
path: root/source3
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
commit36ca3e3411cd3193c84a71c935881ceab3b61055 (patch)
tree1c32b92f1b9e1b98993547ab26155049043c1e04 /source3
parent5a44ce9caaa9e3b19ee387b698ac255ec2cb5785 (diff)
downloadsamba-36ca3e3411cd3193c84a71c935881ceab3b61055.tar.gz
samba-36ca3e3411cd3193c84a71c935881ceab3b61055.tar.bz2
samba-36ca3e3411cd3193c84a71c935881ceab3b61055.zip
don't put two spaces at the start of lines if logging to stdout
or not timestamping. (This used to be commit 70ed0ec202c50655e3ba99535b06ad918409051e)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/debug.c4
1 files changed, 3 insertions, 1 deletions
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;