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_tool.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source3/utils/dbwrap_tool.c') diff --git a/source3/utils/dbwrap_tool.c b/source3/utils/dbwrap_tool.c index ef61ea9dbb..796bea938d 100644 --- a/source3/utils/dbwrap_tool.c +++ b/source3/utils/dbwrap_tool.c @@ -22,8 +22,6 @@ #include "includes.h" #include "dbwrap.h" -extern bool AllowDebugChange; - typedef enum { OP_FETCH, OP_STORE, OP_DELETE, OP_ERASE, OP_LISTKEYS } dbwrap_op; typedef enum { TYPE_INT32, TYPE_UINT32 } dbwrap_type; @@ -214,9 +212,8 @@ int main(int argc, const char **argv) int ret = 1; load_case_tables(); - DEBUGLEVEL_CLASS[DBGC_ALL] = 0; + lp_set_cmdline("log level", "0"); setup_logging(argv[0], DEBUG_STDERR); - AllowDebugChange = false; lp_load(get_dyn_CONFIGFILE(), true, false, false, true); if ((argc < 3) || (argc > 6)) { -- cgit