diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-10-29 14:19:32 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-11-02 04:36:04 +0000 |
commit | 9da4ace1d9789d300ab298bc34694c44b2062f30 (patch) | |
tree | 0c4ce1fa4f3a97934c9504263fdfc86a28e39705 /source3/utils/dbwrap_torture.c | |
parent | 4ae27891f8ac0a56d68b0544e78d6c17ade0c1c9 (diff) | |
download | samba-9da4ace1d9789d300ab298bc34694c44b2062f30.tar.gz |
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
Diffstat (limited to 'source3/utils/dbwrap_torture.c')
-rw-r--r-- | source3/utils/dbwrap_torture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/dbwrap_torture.c b/source3/utils/dbwrap_torture.c index 2d9761bac4a..35d00734896 100644 --- a/source3/utils/dbwrap_torture.c +++ b/source3/utils/dbwrap_torture.c @@ -258,6 +258,7 @@ int main(int argc, const char *argv[]) setlinebuf(stdout); } + setup_logging(argv[0], DEBUG_STDERR); DEBUGLEVEL_CLASS[DBGC_ALL] = 0; pc = poptGetContext(argv[0], argc, argv, popt_options, POPT_CONTEXT_KEEP_FIRST); @@ -279,7 +280,6 @@ int main(int argc, const char *argv[]) } load_case_tables(); - dbf = x_stderr; AllowDebugChange = false; lp_load(get_dyn_CONFIGFILE(), true, false, false, true); |