From 9da4ace1d9789d300ab298bc34694c44b2062f30 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 29 Oct 2010 14:19:32 +1100 Subject: s3-debug Impove setup_logging() to specify logging to stderr This change improves the setup_logging() API so that callers which wish to set up logging to stderr can simply ask for it, rather than directly modify the dbf global variable. Andrew Bartlett --- source3/winbindd/winbindd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source3/winbindd') diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index b8a9e16075..c831c94221 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -1217,7 +1217,11 @@ int main(int argc, char **argv, char **envp) SAFE_FREE(lfile); } } - setup_logging("winbindd", log_stdout); + if (log_stdout) { + setup_logging("winbindd", DEBUG_STDOUT); + } else { + setup_logging("winbindd", DEBUG_FILE); + } reopen_logs(); DEBUG(0,("winbindd version %s started.\n", samba_version_string())); -- cgit