summaryrefslogtreecommitdiffstats
path: root/lib/util/debug.h
Commit message (Collapse)AuthorAgeFilesLines
* debug: Add some readability to debug_logtypeVolker Lendecke2014-07-311-1/+8
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* debug: Remove thread-related code from debug.cVolker Lendecke2014-07-311-34/+0
| | | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Thu Jul 31 16:20:53 CEST 2014 on sn-devel-104
* lib/util: add 'ldb' debug classStefan Metzmacher2013-07-091-1/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Björn Jacke <bj@sernet.de>
* debug: Add ability to dump_data per debug classKai Blin2013-05-181-0/+7
| | | | | Signed-off-by: Kai Blin <kai@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* debug: Add debugclass for DNS serverKai Blin2013-05-161-1/+2
| | | | | Signed-off-by: Kai Blin <kai@samba.org> Reviewed-By: Amitay Isaacs <amitay@gmail.com>
* s3:smbd: add a scavenger process for disconnected durable handlesGregor Beck2013-04-181-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>
* Fix bug #8877 - Syslog broken owing to mistyping of debug_settings.syslog.Joseph Tam2012-04-201-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
* lib/util: Add a callback facility for debug messagesAndrew Bartlett2012-03-081-1/+8
| | | | | | | This will allow dlz_bind9 to put log messages somewhere useful, which may make it easier to debug. Andrew Bartlett
* debug: log early messages to stdout, and keep it openAndrew Bartlett2011-07-201-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>
* lib/util Change debug priority order: DEBUG_STDOUT now overrides DEBUG_FILEAndrew Bartlett2011-07-201-1/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util: new merged debug systemAndrew Bartlett2011-03-011-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
* lib/util move debug.[ch] out of the wayAndrew Bartlett2011-03-011-150/+0
| | | | | | | This will allow a modified version of the s3 debug system to be the new common debug system. Andrew Bartlett
* debug: fixed default debug settingsAndrew Tridgell2010-11-041-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
* lib/util Remove setup_logging_stdout()Andrew Bartlett2010-11-011-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
* lib/debug Add DEBUGC and DEBUGADDC as dummiesAndrew Bartlett2010-10-121-0/+4
| | | | | | | This allows code that needs to also compile against the source3 debug code to compile in source4. Andrew Bartlett
* debug: enable talloc loggingAndrew Tridgell2010-04-021-0/+3
| | | | we want to ensure talloc warnings are printed in the log
* s4-debug: removed debug_ctx(). It didn't catch on :-)Andrew Tridgell2010-01-091-4/+0
| | | | There was only one user, which isn't worth it for the overhead.
* Fix ndrdump to use a common setup_logging() APIAndrew Bartlett2009-06-291-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
* Revert "s4:debug: make setup_logging() a bit more compatible with samba3"Andrew Bartlett2009-06-291-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.
* s4:debug: make setup_logging() a bit more compatible with samba3Stefan Metzmacher2009-01-091-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
* lib/util: make it possible to use debug.h with using xfile.hStefan Metzmacher2008-12-171-1/+2
| | | | metze
* Rename class to "cls" since the first is a keyword name in C++. Thanks,Jelmer Vernooij2008-11-021-1/+1
| | | | Brad.
* ALlow util/debug.h to be included more than once.Jelmer Vernooij2008-11-011-0/+5
|
* Make sure prototypes are always included, make some functions static andJelmer Vernooij2008-10-201-0/+4
| | | | remove some unused functions.
* Move lib/util from source4 to top-level libutil.Jelmer Vernooij2008-10-111-0/+129
Conflicts: source4/Makefile