diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-11-01 18:42:36 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-11-02 04:36:04 +0000 |
commit | db2a61ab26f8dab5c9b8f27ae25f9b1ca5fe67b4 (patch) | |
tree | 45df87f2f68e6c1039be1f0d30789af1a24ad3b5 /lib/util | |
parent | 4aeb608eca3be67498819000f5eea9ad63e9b7f8 (diff) | |
download | samba-db2a61ab26f8dab5c9b8f27ae25f9b1ca5fe67b4.tar.gz samba-db2a61ab26f8dab5c9b8f27ae25f9b1ca5fe67b4.tar.bz2 samba-db2a61ab26f8dab5c9b8f27ae25f9b1ca5fe67b4.zip |
debug Explain the behaviour of setup_logging() more clearly
Diffstat (limited to 'lib/util')
-rw-r--r-- | lib/util/debug.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/util/debug.c b/lib/util/debug.c index 5760a709ef..54e7a5fcf6 100644 --- a/lib/util/debug.c +++ b/lib/util/debug.c @@ -190,7 +190,13 @@ void debug_setup_talloc_log(void) /** control the name of the logfile and whether logging will be to stdout, stderr - or a file + or a file, and set up syslog + + new_log indicates the destination for the debug log (an enum in + order of precedence - once set to DEBUG_FILE, it is not possible to + reset to DEBUG_STDOUT for example. This makes it easy to override + for debug to stderr on the command line, as the smb.conf cannot + reset it back to file-based logging */ _PUBLIC_ void setup_logging(const char *prog_name, enum debug_logtype new_logtype) { |