[PATCH] debug: Print header when logging to stdout

David Disseldorp ddiss at suse.de
Fri Dec 5 10:42:18 MST 2014

On Fri, 21 Nov 2014 14:52:16 -0700, Christof Schmitt wrote:

> This patch changes the debug code, so that the header is always printed.
> I find this useful for debugging interactive commands with -d10. Always
> having the debug header in the output would also make the explicit
> function name in the debug message obsolete.
> I assume that there is a historical reason for the behavior in the debug
> code; does anybody know why the debug code behaves differently for
> stdout and logging to a file?

I'll be really happy to see this change go in.

Reviewed-by: David Disseldorp <ddiss at samba.org>

Once it's in, we should be able to finally ban people from putting
explicit function names in debug messages :)

Cheers, David

More information about the samba-technical mailing list