summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-05-07 23:46:48 +0000
committerTim Potter <tpot@samba.org>2001-05-07 23:46:48 +0000
commit831b0983bd799fd73de18921f09991a1647ec482 (patch)
tree3076bd5eaf64041be9487e84fb1160b82a5e1744
parent9aefc86e355bf160300580acb85a58a18207ccdf (diff)
downloadsamba-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.
-rw-r--r--source/lib/debug.c11
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);