Revert "s4:debug: make setup_logging() a bit more compatible with samba3"
authorAndrew Bartlett <abartlet@samba.org>
Mon, 29 Jun 2009 09:57:57 +0000 (19:57 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 29 Jun 2009 09:57:57 +0000 (19:57 +1000)
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.

lib/util/debug.h

index 85e64fb8616b8cded7d8a15cfeed8e273e0dd4b0..7518a64e19613ae8fa809781dbcea20fa788f508 100644 (file)
@@ -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