s3-smbd Remove manual override of DEBUGELVEL during exit
authorAndrew Bartlett <abartlet@samba.org>
Wed, 27 Oct 2010 01:58:10 +0000 (12:58 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 27 Oct 2010 04:42:06 +0000 (04:42 +0000)
This code, originally added at the dawn of time (the import into CVS)
does not seem to be required any more, as all the DEBUG() statements
in the intermediate functions are at level 0.

Andrew Bartlett

source3/smbd/server_exit.c

index 9f2d6b3e9af3697eb8ea6484564953c01702c9c8..57fec8d96c7ff7892c58c2ea9fd21ebbfcf066af 100644 (file)
@@ -127,10 +127,6 @@ static void exit_server_common(enum server_exit_reason how,
        TALLOC_FREE(smbd_memcache_ctx);
 
        if (how != SERVER_EXIT_NORMAL) {
-               int oldlevel = DEBUGLEVEL;
-
-               DEBUGLEVEL = 10;
-
                DEBUGSEP(0);
                DEBUG(0,("Abnormal server exit: %s\n",
                        reason ? reason : "no explanation provided"));
@@ -138,7 +134,6 @@ static void exit_server_common(enum server_exit_reason how,
 
                log_stack_trace();
 
-               DEBUGLEVEL = oldlevel;
                dump_core();
 
        } else {