DEBUG in reply.c file

Esh, Andrew AEsh at tricord.com
Wed Jun 19 08:08:02 GMT 2002


The level number in the macro call specifies the number which the Samba log
level must match or exceed in order for that debug statement to appear in
the log. The Samba log level is controlled by the smb.conf "log level"
parameter.

If you place a "DEBUG(10, ( ..." in the code, and set the Samba log level to
8, the debug message won't appear. Increase the log level to 10 or more, and
it appears.

I usually run Samba a log level 2, so I can see general informational
entries, and serious problems. If I need to debug a problem, I increase the
log level to 10, so I can see almost all of what Samba is doing as it
operates.

-----Original Message-----
From: Gerald Carter [mailto:jerry at samba.org]
Sent: Wednesday, June 19, 2002 8:48 AM
To: Srinivas, Mohan
Cc: samba-technical at lists.samba.org
Subject: Re: DEBUG in reply.c file


On Wed, 19 Jun 2002, Srinivas, Mohan wrote:

> Hi everybody, Can anybody tell me what is the significance of level (the
> integer ) in DEBUG macro in SAMBA code. There is one debug in reply.c
> file.When it will be executed, and if at all executed, where it will be
> logged, i mean which log file??

The higher the debug level, the more information written to the 
"log file".  Generally 10 is the highest used debug level, but 
50 will guive you full packets dumps in /tmp and 100 is used to debug 
password changes.










cheers, jerry
 ---------------------------------------------------------------------
 Hewlett-Packard                                     http://www.hp.com
 SAMBA Team                                       http://www.samba.org
 --                                            http://www.plainjoe.org
 "Sam's Teach Yourself Samba in 24 Hours" 2ed.      ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--

-------------- next part --------------
HTML attachment scrubbed and removed


More information about the samba-technical mailing list