diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/debug.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/debug.c b/source3/lib/debug.c index 4afc953c3e..185c2373f4 100644 --- a/source3/lib/debug.c +++ b/source3/lib/debug.c @@ -894,6 +894,10 @@ static void format_debug_text( const char *msg ) size_t i; bool timestamp = (!stdout_logging && (lp_timestamp_logs() || !(lp_loaded()))); + if (!format_bufr) { + debug_init(); + } + for( i = 0; msg[i]; i++ ) { /* Indent two spaces at each new line. */ if(timestamp && 0 == format_pos) { |