1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

don't put two spaces at the start of lines if logging to stdout

or not timestamping.
This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent c4a8cdc60a
commit 70ed0ec202

View File

@ -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;