summaryrefslogtreecommitdiff
path: root/lib/util/debug.h
AgeCommit message (Collapse)AuthorFilesLines
2013-04-18s3:smbd: add a scavenger process for disconnected durable handlesGregor Beck1-1/+2
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Gregor Beck <gbeck@sernet.de> Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2012-04-20Fix bug #8877 - Syslog broken owing to mistyping of debug_settings.syslog.Joseph Tam1-1/+1
Setting "syslog only = yes" did not divert log messages to syslog. The test in lib/util/debug.c:Debug1():747 if( syslog_level < state.settings.syslog ) produces wrong results since .syslog is typed "bool" rather than "int". The attached patch fixes this by typing this field correctly as "int". Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Apr 20 00:06:12 CEST 2012 on sn-devel-104
2012-03-08lib/util: Add a callback facility for debug messagesAndrew Bartlett1-1/+8
This will allow dlz_bind9 to put log messages somewhere useful, which may make it easier to debug. Andrew Bartlett
2011-07-20debug: log early messages to stdout, and keep it openAndrew Bartlett1-0/+1
The --log-stdout option was compromised by the log file descriptors being closed once the file process forked. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-20lib/util Change debug priority order: DEBUG_STDOUT now overrides DEBUG_FILEAndrew Bartlett1-1/+1
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-03-01lib/util: new merged debug systemAndrew Bartlett1-0/+269
This is the s3 debug system, with a number of changes to tidy it up for common use. The debug class system is simplified by the removal of the ISSET table, the system no longer attempts to cope with assignment of DEBUGLEVEL, and the full class table is always available (rather than just DEBUGLEVEL_CLASS[DBCG_ALL]) from startup. It is also no longer confusingly described as a hack, but as the initial table. Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Mar 1 04:32:12 CET 2011 on sn-devel-104
2011-03-01lib/util move debug.[ch] out of the wayAndrew Bartlett1-150/+0
This will allow a modified version of the s3 debug system to be the new common debug system. Andrew Bartlett
2010-11-04debug: fixed default debug settingsAndrew Tridgell1-1/+5
this fixes -d in our command line tools (eg. samba-tool) Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Nov 4 01:48:15 UTC 2010 on sn-devel-104
2010-11-01lib/util Remove setup_logging_stdout()Andrew Bartlett1-6/+1
This API is no longer required now that we don't attempt to build ndrdump with the s3 build system, and because the s3 debug system will soon have the same setup_logging() API. Andrew Bartlett
2010-10-12lib/debug Add DEBUGC and DEBUGADDC as dummiesAndrew Bartlett1-0/+4
This allows code that needs to also compile against the source3 debug code to compile in source4. Andrew Bartlett
2010-04-02debug: enable talloc loggingAndrew Tridgell1-0/+3
we want to ensure talloc warnings are printed in the log
2010-01-09s4-debug: removed debug_ctx(). It didn't catch on :-)Andrew Tridgell1-4/+0
There was only one user, which isn't worth it for the overhead.
2009-06-29Fix ndrdump to use a common setup_logging() APIAndrew Bartlett1-1/+10
By adding a new common setup_logging_stdout() API, we no longer need to abuse the ABI compatability between the different setup_logging() calls in Samba3 and Samba4's DEBUG() subsystems. The revert of 49a6d757b4d944cd22c91b2838beb83f04fbe1e9 works with this to fix bug 6211. Andrew Bartlett
2009-06-29Revert "s4:debug: make setup_logging() a bit more compatible with samba3"Andrew Bartlett1-1/+1
The problem is that the enum was previously a 'rachet', that is, it would only reset to a level higher than it was previouly set to. Changing the order broke file-based logging for our production sites. This reverts commit 49a6d757b4d944cd22c91b2838beb83f04fbe1e9.
2009-01-09s4:debug: make setup_logging() a bit more compatible with samba3Stefan Metzmacher1-1/+1
In samba3 the 2nd argument is bool interactive. E.g ndrdump uses true there which used to map to DEBUG_FILE in samba4, it maps to DEBUG_STDOUT now, which is better. In the end end samba3 should also use the samba4 version of setup_logging() metze
2008-12-17lib/util: make it possible to use debug.h with using xfile.hStefan Metzmacher1-1/+2
metze
2008-11-02Rename class to "cls" since the first is a keyword name in C++. Thanks,Jelmer Vernooij1-1/+1
Brad.
2008-11-01ALlow util/debug.h to be included more than once.Jelmer Vernooij1-0/+5
2008-10-20Make sure prototypes are always included, make some functions static andJelmer Vernooij1-0/+4
remove some unused functions.
2008-10-11Move lib/util from source4 to top-level libutil.Jelmer Vernooij1-0/+129
Conflicts: source4/Makefile