From 4a98d6ce96924e905ce87e9bec2ef29d25803aad Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 1 Apr 2011 14:55:37 +1100 Subject: debug: default debug to stderr if setup_logging() hasn't been called then default to sending debug to stderr Pair-Programmed-With: Andrew Bartlett --- lib/util/debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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 */ }; /* -------------------------------------------------------------------------- ** -- cgit