diff options
author | Tim Potter <tpot@samba.org> | 2001-05-07 23:46:48 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-05-07 23:46:48 +0000 |
commit | 831b0983bd799fd73de18921f09991a1647ec482 (patch) | |
tree | 3076bd5eaf64041be9487e84fb1160b82a5e1744 /source/lib/debug.c | |
parent | 9aefc86e355bf160300580acb85a58a18207ccdf (diff) | |
download | samba-831b0983bd799fd73de18921f09991a1647ec482.tar.gz samba-831b0983bd799fd73de18921f09991a1647ec482.tar.xz samba-831b0983bd799fd73de18921f09991a1647ec482.zip |
Hey what happened to my debug messages? Early exit from reopen_logs()
if using stdout_logging.
Diffstat (limited to 'source/lib/debug.c')
-rw-r--r-- | source/lib/debug.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/lib/debug.c b/source/lib/debug.c index f7ad324e393..934110a4d77 100644 --- a/source/lib/debug.c +++ b/source/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); |