From cf4de8ec2c8df2ceabbe3d836d296b058e7b19fb Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 29 Oct 2010 15:06:36 +1100 Subject: s3-debug Remove 'AllowDebugChange' and use lp_set_cmdline() instead By removing this global variable, the API between the two different debug systems is made more similar. Both s3 and s4 now have lp_set_cmdline() which ensures that the smb.conf cannot overwrite these the user-specified log level. Andrew Bartlett --- source3/utils/dbwrap_torture.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source3/utils/dbwrap_torture.c') diff --git a/source3/utils/dbwrap_torture.c b/source3/utils/dbwrap_torture.c index 35d0073489..abb17e8e2a 100644 --- a/source3/utils/dbwrap_torture.c +++ b/source3/utils/dbwrap_torture.c @@ -33,8 +33,6 @@ #include #endif -extern bool AllowDebugChange; - #define DEFAULT_DB_NAME "transaction.tdb" static int timelimit = 10; @@ -259,7 +257,7 @@ int main(int argc, const char *argv[]) } setup_logging(argv[0], DEBUG_STDERR); - DEBUGLEVEL_CLASS[DBGC_ALL] = 0; + lp_set_cmdline("log level", "0"); pc = poptGetContext(argv[0], argc, argv, popt_options, POPT_CONTEXT_KEEP_FIRST); @@ -280,7 +278,6 @@ int main(int argc, const char *argv[]) } load_case_tables(); - AllowDebugChange = false; lp_load(get_dyn_CONFIGFILE(), true, false, false, true); ev_ctx = tevent_context_init(mem_ctx); -- cgit