s3-debug Remove 'AllowDebugChange' and use lp_set_cmdline() instead
[kai/samba.git] / source3 / utils / sharesec.c
index ae959bafb5d3c9828971c8ebced5ca1b393021bf..7ed238cdd46173343186723bb4a33354cbd74852 100644 (file)
@@ -544,7 +544,7 @@ int main(int argc, const char *argv[])
 
        /* set default debug level to 1 regardless of what smb.conf sets */
        setup_logging( "sharesec", DEBUG_STDERR);
-       DEBUGLEVEL_CLASS[DBGC_ALL] = 1;
+       lp_set_cmdline("log level", "1");
 
        pc = poptGetContext("sharesec", argc, argv, long_options, 0);