From b50d07252945b8026d0194809dde95c201489804 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Mon, 7 May 2001 23:46:48 +0000 Subject: Hey what happened to my debug messages? Early exit from reopen_logs() if using stdout_logging. (This used to be commit 831b0983bd799fd73de18921f09991a1647ec482) --- source3/lib/debug.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); -- cgit