summaryrefslogtreecommitdiff
path: root/source3/lib/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/debug.c')
-rw-r--r--source3/lib/debug.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/lib/debug.c b/source3/lib/debug.c
index f7ad324e39..934110a4d7 100644
--- a/source3/lib/debug.c
+++ b/source3/lib/debug.c
@@ -133,6 +133,9 @@ char *classname_table[] = {
"tdb", /* DBGC_TDB */
"printdrivers", /* DBGC_PRINTDRIVERS */
"lanman", /* DBGC_LANMAN */
+ "smb", /* DBGC_SMB */
+ "rpc", /* DBGC_RPC */
+ "rpc_hdr", /* DBGC_RPC_HDR */
};
@@ -227,6 +230,11 @@ BOOL debug_parse_levels(char *params_str)
if (debug_parse_params(params, debuglevel_class)) {
debug_message(0, getpid(), (void*)debuglevel_class, sizeof(debuglevel_class));
+
+#if 0
+ memcpy(DEBUGLEVEL_CLASS, debuglevel_class,
+ sizeof(debuglevel_class));
+#endif
return True;
} else
return False;
@@ -310,6 +318,9 @@ BOOL reopen_logs( void )
FILE *new_dbf = NULL;
BOOL ret = True;
+ if (stdout_logging)
+ return True;
+
if (DEBUGLEVEL_CLASS[ DBGC_ALL ] <= 0) {
if (dbf) {
(void)fclose(dbf);