git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6b93d2
)
debug: default debug to stderr
author
Andrew Tridgell
<tridge@samba.org>
Fri, 1 Apr 2011 03:55:37 +0000
(14:55 +1100)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/lib/util/debug.c
b/lib/util/debug.c
index 9a6d30449b84ca6c984a2f5e51e536aefaa09941..b0a78823fcbce5911f45a1b4c370a82cca2c1a67 100644
(file)
--- 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 */
};
/* -------------------------------------------------------------------------- **