diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-22 19:14:08 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-22 19:14:08 +0000 |
commit | b4d387c28bbcfabfc8baa1b63db396888534519a (patch) | |
tree | cfcf2aa91d3c404749eda39b6a10078f6ff39238 /src/common/log.c | |
parent | 7d79bec54d7b37aacb3914f4baa792315ce4f905 (diff) | |
download | tor-b4d387c28bbcfabfc8baa1b63db396888534519a.tar.gz tor-b4d387c28bbcfabfc8baa1b63db396888534519a.zip |
Make freelist_len in memarea.c static; document a few variables.
svn:r17741
Diffstat (limited to 'src/common/log.c')
-rw-r--r-- | src/common/log.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/log.c b/src/common/log.c index 224b93a467..f43181848f 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -104,7 +104,8 @@ static tor_mutex_t *log_mutex = NULL; /** Linked list of logfile_t. */ static logfile_t *logfiles = NULL; #ifdef HAVE_SYSLOG_H -/* DOCDOC syslog_count */ +/** The number of open syslog log handlers that we have. When this reaches 0, + * we can close our connection to the syslog facility. */ static int syslog_count = 0; #endif @@ -118,8 +119,8 @@ static int syslog_count = 0; #define UNLOCK_LOGS() STMT_NIL #endif -/* What's the lowest log level anybody cares about? */ -/* DOCDOC _log_global_min_severity */ +/** What's the lowest log level anybody cares about? Checking this lets us + * bail out early from log_debug if we aren't debugging. */ int _log_global_min_severity = LOG_NOTICE; static void delete_log(logfile_t *victim); |