debug: default debug to stderr
authorAndrew Tridgell <tridge@samba.org>
Fri, 1 Apr 2011 03:55:37 +0000 (14:55 +1100)
committerAndrew Tridgell <tridge@samba.org>
Mon, 4 Apr 2011 00:30:29 +0000 (10:30 +1000)
if setup_logging() hasn't been called then default to sending debug to
stderr

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

lib/util/debug.c

index 9a6d30449b84ca6c984a2f5e51e536aefaa09941..b0a78823fcbce5911f45a1b4c370a82cca2c1a67 100644 (file)
@@ -91,7 +91,8 @@ static struct {
 } state = {
        .settings = {
                .timestamp_logs = true
-       }
+       },
+       .fd = 2 /* stderr by default */
 };
 
 /* -------------------------------------------------------------------------- **