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:
parent
c4a8cdc60a
commit
70ed0ec202
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user