summaryrefslogtreecommitdiff
path: root/src/common/log.c
AgeCommit message (Collapse)Author
2010-02-27Merge remote branch 'origin/maint-0.2.1'Nick Mathewson
Conflicts: src/common/test.h src/or/test.c
2010-02-27Update Tor Project copyright yearsNick Mathewson
2010-01-25Don't unlock a new log until done logging the tor version.Nick Mathewson
This might please coverity scan.
2009-12-15Refactor a bit so that it is safe to include math.h, and mostly not needed.Nick Mathewson
2009-12-12*_free functions now accept NULLSebastian Hahn
Some *_free functions threw asserts when passed NULL. Now all of them accept NULL as input and perform no action when called that way. This gains us consistence for our free functions, and allows some code simplifications where an explicit null check is no longer necessary.
2009-11-22add a minimum for CircuitStreamTimeout, plus a man pageRoger Dingledine
plus some other unrelated touchups that have been sitting in my sandbox
2009-09-24Debugging logs for TLS handshakeNick Mathewson
The big change is to add a function to display the current SSL handshake state, and to log it everywhere reasonable. (A failure in SSL23_ST_CR_SRVR_HELLO_A is different from one in SSL3_ST_CR_SESSION_TICKET_A.) This patch also adds a new log domain for OR handshaking, so you can pull out all the handshake log messages without having to run at debug for everything. For example, you'd just say "log notice-err [handshake]debug-err file tor.log".
2009-09-01Merge commit 'origin/maint-0.2.1'Nick Mathewson
2009-09-01Fix compile warnings on Snow LeopardSebastian Hahn
Big thanks to nickm and arma for helping me with this!
2009-08-27Merge branch 'maint-0.2.1'Roger Dingledine
2009-08-20Fix a rare infinite-recursion bug when shutting down.Nick Mathewson
Once we had called log_free_all(), anything that tried to log a message (like a failed tor_assert()) would fail like this: 1. The logging call eventually invokes the _log() function. 2. _log() calls tor_mutex_lock(log_mutex). 3. tor_mutex_lock(m) calls tor_assert(m). 4. Since we freed the log_mutex, tor_assert() fails, and tries to log its failure. 5. GOTO 1. Now we allocate the mutex statically, and never destroy it on shutdown. Bugfix on 0.2.0.16-alpha, which introduced the log mutex. This bug was found by Matt Edman.
2009-06-12Update Tor to use Libevent 2.0 APIs when available.Nick Mathewson
This patch adds a new compat_libevent.[ch] set of files, and moves our Libevent compatibility and utilitity functions there. We build them into a separate .a so that nothing else in src/commmon depends on Libevent (partially fixing bug 507). Also, do not use our own built-in evdns copy when we have Libevent 2.0, whose evdns is finally good enough (thus fixing Bug 920).
2009-05-04Update copyright to 2009.Karsten Loesing
2009-05-02Update copyright to 2009.Karsten Loesing
2009-01-23Fix typo found by Justin Coffi on or-talkNick Mathewson
svn:r18258
2009-01-04Remove svn $Id$s from our source, and remove tor --version --version.Nick Mathewson
The subversion $Id$ fields made every commit force a rebuild of whatever file got committed. They were not actually useful for telling the version of Tor files in the wild. svn:r17867
2008-12-30Remove some code that is #ifdefed out, and that we no longer seem to use, if ↵Nick Mathewson
we ever did. svn:r17827
2008-12-22Make freelist_len in memarea.c static; document a few variables.Nick Mathewson
svn:r17741
2008-12-22Add DOCDOC entries for undocumented static and global variables.Nick Mathewson
svn:r17739
2008-12-22Fix most DOCDOCs remaining and/or added by redox.Nick Mathewson
svn:r17734
2008-12-18One log.c XXX021 was a misunderstanding. Also, clip log messages passed to ↵Nick Mathewson
syslog to their maximum length when there is a maximum. svn:r17688
2008-12-17Resolve many DOCDOCs.Nick Mathewson
svn:r17662
2008-12-02Change logging code to use fds instead of stdio. Fixes bug 861, and ↵Nick Mathewson
probably makes logging slightly faster. Not a backport candidate: bug 861 is too obscure and harmless. svn:r17456
2008-11-17Update _log_global_min_severity after switch_logs_debug(), so that USR2 will ↵Nick Mathewson
work again. Bugfix on 0.1.2.8-beta. Spotted by Geoff Down. svn:r17317
2008-09-23More logging for mtbf/wfu calculations.Nick Mathewson
svn:r16941
2008-09-05Make severity args to add_*_log() functions be constNick Mathewson
svn:r16775
2008-03-27Add --hush switch.Peter Palfrader
New --hush command-line option similar to --quiet. While --quiet disables all logging to the console on startup, --hush limits the output to messages of warning and error severity. svn:r14222
2008-03-27 r19089@catbus: nickm | 2008-03-27 11:05:23 -0400Nick Mathewson
Free some static hashtables and the log mutex on exit. Backport candidate. svn:r14212
2008-03-26fix a leak when adding a temp logRoger Dingledine
svn:r14203
2008-03-26fix mem leak in parsing log config linesRoger Dingledine
svn:r14202
2008-03-17 r18861@catbus: nickm | 2008-03-16 23:22:56 -0400Nick Mathewson
Fix a couple of bugs in setting control log callback severity. svn:r14065
2008-03-13 r18804@catbus: nickm | 2008-03-13 18:18:31 -0400Nick Mathewson
Refactor log domain mask code so that nobody outside of log.c has to use SEVERITY_MASK_IDX. It is error-prone. svn:r14016
2008-03-13 r18803@catbus: nickm | 2008-03-13 17:59:25 -0400Nick Mathewson
Fix behavior of switch_logs_debug() in trunk. Fixes bug 626. Bugfix on r13875. svn:r14015
2008-03-13Assert that severity in logv() is sane. Interesting effects otherwise (It ↵Peter Palfrader
is being used as an array index) svn:r14006
2008-03-11 r18753@catbus: nickm | 2008-03-11 14:56:39 -0400Nick Mathewson
Make some assert()s into tor_assert()s. Make some tor_assert()s called from logging into assert()s, and document why. svn:r13977
2008-03-08 r18639@catbus: nickm | 2008-03-07 20:11:48 -0500Nick Mathewson
Change semantics of add-a-log functions to copy severity setup: that is way less error-prone. Fix up config.c to act accordingly. svn:r13888
2008-03-05 r18630@catbus: nickm | 2008-03-05 17:31:33 -0500Nick Mathewson
Implement domain-selection for logging. Source is documented; needs documentation in manpage (maybe). For now, see doxygen comment on parse_log_severity_config in log.c svn:r13875
2008-02-21 r14373@tombo: nickm | 2008-02-21 16:29:18 -0500Nick Mathewson
Apply warnings about implicit 64-to-32 conversions; some from Sebastian Hahn; some not. svn:r13664
2008-02-07Update some copyright notices: it is now 2008.Nick Mathewson
svn:r13412
2008-02-06 r17947@catbus: nickm | 2008-02-06 11:57:53 -0500Nick Mathewson
Fix a bunch of DOCDOC items; document the --quiet flag; refactor a couple of XXXX020 items. svn:r13405
2008-01-02 r15784@tombo: nickm | 2008-01-02 00:38:06 -0500Nick Mathewson
Fix bug 575: protect the list of logs with a mutex. I couldn't find any appreciable change in logging performance on osx, but ymmv. You can undef USE_LOG_MUTEX to see if stuff gets faster for you. svn:r13019
2007-12-12clean up copyrights, and assign 2007 copyrights to The Tor Project, IncRoger Dingledine
svn:r12786
2007-07-16free some more memory on exitRoger Dingledine
svn:r10837
2007-05-29 r13058@catbus: nickm | 2007-05-29 14:39:53 -0400Nick Mathewson
Note that the fix for bug 222 should technically be turned into a real fix, not a kludge, one of these days. svn:r10397
2007-05-29 r13054@catbus: nickm | 2007-05-29 14:20:50 -0400Nick Mathewson
An even better workaround for the probably-already-fixed bug 222. svn:r10395
2007-05-29 r13050@catbus: nickm | 2007-05-29 13:31:11 -0400Nick Mathewson
Resolve all but 3 DOCDOCs. svn:r10393
2007-05-22 r12852@catbus: nickm | 2007-05-22 11:00:27 -0400Nick Mathewson
Use svn revisions consistently throughout all log messages. svn:r10291
2007-05-13polish r9726-r9903Roger Dingledine
svn:r10182
2007-05-01 r12607@catbus: nickm | 2007-04-30 21:36:28 -0400Nick Mathewson
More attempt to fix win32 building. This time, with extra linking. svn:r10080
2007-03-11 r12533@Kushana: nickm | 2007-03-11 05:01:15 -0400Nick Mathewson
Oh. Tor was supposed to compile? svn:r9797