diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-04-01 14:55:37 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-04-04 10:30:29 +1000 |
commit | 4a98d6ce96924e905ce87e9bec2ef29d25803aad (patch) | |
tree | 370728459a3d495620301808895ebee40be67855 /lib/util | |
parent | c6b93d2f843402aacaf314c919bb8e6368817ca4 (diff) | |
download | samba-4a98d6ce96924e905ce87e9bec2ef29d25803aad.tar.gz samba-4a98d6ce96924e905ce87e9bec2ef29d25803aad.tar.bz2 samba-4a98d6ce96924e905ce87e9bec2ef29d25803aad.zip |
debug: default debug to stderr
if setup_logging() hasn't been called then default to sending debug to
stderr
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/util')
-rw-r--r-- | lib/util/debug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/util/debug.c b/lib/util/debug.c index 9a6d30449b..b0a78823fc 100644 --- a/lib/util/debug.c +++ b/lib/util/debug.c @@ -91,7 +91,8 @@ static struct { } state = { .settings = { .timestamp_logs = true - } + }, + .fd = 2 /* stderr by default */ }; /* -------------------------------------------------------------------------- ** |