summaryrefslogtreecommitdiff
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
commitb50d07252945b8026d0194809dde95c201489804 (patch)
tree38674ce7ca062ea0e106fdb3d720c1d9ef3f2f78
parent495f6e678774b013ec9da268fb69543ec9fc6cc6 (diff)
downloadsamba-b50d07252945b8026d0194809dde95c201489804.tar.gz
samba-b50d07252945b8026d0194809dde95c201489804.tar.bz2
samba-b50d07252945b8026d0194809dde95c201489804.zip
Hey what happened to my debug messages? Early exit from reopen_logs()
if using stdout_logging. (This used to be commit 831b0983bd799fd73de18921f09991a1647ec482)
-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);