diff options
Diffstat (limited to 'source/lib/debug.c')
-rw-r--r-- | source/lib/debug.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/lib/debug.c b/source/lib/debug.c index 476023a7bab..02bf6710f55 100644 --- a/source/lib/debug.c +++ b/source/lib/debug.c @@ -477,8 +477,9 @@ BOOL dbghdr( int level, char *file, char *func, int line ) return( True ); /* Print it all out at once. */ - Debug1( "[%s, %d] %s%s%s(%d)\n", - timestring(), level, file, (*file)?":":"", func, line ); + if(lp_timestamp_logs()) + Debug1( "[%s, %d] %s%s%s(%d)\n", + timestring(), level, file, (*file)?":":"", func, line ); return( True ); } /* dbghdr */ |