s3-debug Impove setup_logging() to specify logging to stderr
[ira/wip.git] / source3 / utils / sharesec.c
index a945fe58f6f0a2006a0302499097ba852f21951d..ae959bafb5d3c9828971c8ebced5ca1b393021bf 100644 (file)
@@ -543,10 +543,8 @@ int main(int argc, const char *argv[])
        }
 
        /* set default debug level to 1 regardless of what smb.conf sets */
-       setup_logging( "sharesec", True );
+       setup_logging( "sharesec", DEBUG_STDERR);
        DEBUGLEVEL_CLASS[DBGC_ALL] = 1;
-       dbf = x_stderr;
-       x_setbuf( x_stderr, NULL );
 
        pc = poptGetContext("sharesec", argc, argv, long_options, 0);