[PATCH] s4:tevent: Increase trace debug level to 50.

Andrew Kroeger andrew at id10ts.net
Mon May 25 00:39:36 GMT 2009


Please find attached a patch that increases the tevent trace debug level 
from 10 to 50.

The tevent tracing at log level 10 adds such volume to the log that it 
makes it difficult to follow through the log when trying to debug other 
issues.  Increasing the trace level of tevent to 50 allows tevent 
tracing to be done if needed, but keeps it out of the level 10 logs.

An additional benefit observed with this patch is that S4 appears to run 
faster at log level 10, apparently because there is less log I/O happening.

Andrew Kroeger
-------------- next part --------------
>From 91f5a1f14b730ab36e7f0f7d586668bb56ef17c6 Mon Sep 17 00:00:00 2001
From: Andrew Kroeger <andrew at id10ts.net>
Date: Sun, 24 May 2009 01:48:49 -0500
Subject: [PATCH] s4:tevent: Increase trace debug level to 50.

The sheer volume of messages generated by tevent when the trace level is set to
10 makes it difficult to debug issues in a level 10 log.  Increasing this to
50 allows tevent tracing to be enabled if needed, but otherwise keeps the extra
chatter out of a level 10 log.
 source4/lib/events/tevent_s4.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/source4/lib/events/tevent_s4.c b/source4/lib/events/tevent_s4.c
index 06bfbf6..1898269 100644
--- a/source4/lib/events/tevent_s4.c
+++ b/source4/lib/events/tevent_s4.c
@@ -42,7 +42,7 @@ static void ev_wrap_debug(void *context, enum tevent_debug_level level,
 		samba_level = 2;
-		samba_level = 10;
+		samba_level = 50;

More information about the samba-technical mailing list