From: Andrew Bartlett Date: Mon, 29 Jun 2009 09:57:57 +0000 (+1000) Subject: Revert "s4:debug: make setup_logging() a bit more compatible with samba3" X-Git-Tag: talloc-2.0.0~884 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0e95b807b9ff7dee9d53d7294011c6e8cd82fe0e;p=thirdparty%2Fsamba.git Revert "s4:debug: make setup_logging() a bit more compatible with samba3" The problem is that the enum was previously a 'rachet', that is, it would only reset to a level higher than it was previouly set to. Changing the order broke file-based logging for our production sites. This reverts commit 49a6d757b4d944cd22c91b2838beb83f04fbe1e9. --- diff --git a/lib/util/debug.h b/lib/util/debug.h index 85e64fb8616..7518a64e196 100644 --- a/lib/util/debug.h +++ b/lib/util/debug.h @@ -75,7 +75,7 @@ extern int DEBUGLEVEL; #define DEBUGTAB(n) do_debug_tab(n) /** Possible destinations for the debug log */ -enum debug_logtype {DEBUG_FILE = 0, DEBUG_STDOUT = 1, DEBUG_STDERR = 2}; +enum debug_logtype {DEBUG_STDOUT = 0, DEBUG_FILE = 1, DEBUG_STDERR = 2}; /** the backend for debug messages. Note that the DEBUG() macro has already