aboutsummaryrefslogtreecommitdiff
path: root/src/common/log.c
Commit message (Expand)AuthorAge
* Rename log.h to torlog.h•••This should make us conflict less with system files named "log.h". Yes, we shouldn't have been conflicting with those anyway, but some people's compilers act very oddly. The actual change was done with one "git mv", by editing Makefile.am, and running find . -name '*.[ch]' | xargs perl -i -pe 'if (/^#include.*\Wlog.h/) {s/log.h/torlog.h/; }' Nick Mathewson2010-07-09
* Merge remote branch 'origin/maint-0.2.1'•••Conflicts: src/common/test.h src/or/test.c Nick Mathewson2010-02-27
|\
| * Update Tor Project copyright yearsNick Mathewson2010-02-27
* | Don't unlock a new log until done logging the tor version.•••This might please coverity scan. Nick Mathewson2010-01-25
* | Refactor a bit so that it is safe to include math.h, and mostly not needed.Nick Mathewson2009-12-15
* | *_free functions now accept NULL•••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. Sebastian Hahn2009-12-12
* | add a minimum for CircuitStreamTimeout, plus a man page•••plus some other unrelated touchups that have been sitting in my sandbox Roger Dingledine2009-11-22
* | Debugging logs for TLS handshake•••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". Nick Mathewson2009-09-24
* | Merge commit 'origin/maint-0.2.1'Nick Mathewson2009-09-01
|\|
| * Fix compile warnings on Snow Leopard•••Big thanks to nickm and arma for helping me with this! Sebastian Hahn2009-09-01
* | Merge branch 'maint-0.2.1'Roger Dingledine2009-08-27
|\|
| * Fix a rare infinite-recursion bug when shutting down.•••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. Nick Mathewson2009-08-20
| * Update copyright to 2009.Karsten Loesing2009-05-04
* | Update Tor to use Libevent 2.0 APIs when available.•••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). Nick Mathewson2009-06-12
* | Update copyright to 2009.Karsten Loesing2009-05-02
|/
* Fix typo found by Justin Coffi on or-talk•••svn:r18258 Nick Mathewson2009-01-23
* Remove svn $Id$s from our source, and remove tor --version --version.•••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 Nick Mathewson2009-01-04
* Remove some code that is #ifdefed out, and that we no longer seem to use, if ...•••svn:r17827 Nick Mathewson2008-12-30
* Make freelist_len in memarea.c static; document a few variables.•••svn:r17741 Nick Mathewson2008-12-22
* Add DOCDOC entries for undocumented static and global variables.•••svn:r17739 Nick Mathewson2008-12-22
* Fix most DOCDOCs remaining and/or added by redox.•••svn:r17734 Nick Mathewson2008-12-22
* One log.c XXX021 was a misunderstanding. Also, clip log messages passed to s...•••svn:r17688 Nick Mathewson2008-12-18
* Resolve many DOCDOCs.•••svn:r17662 Nick Mathewson2008-12-17
* Change logging code to use fds instead of stdio. Fixes bug 861, and probably...•••svn:r17456 Nick Mathewson2008-12-02
* Update _log_global_min_severity after switch_logs_debug(), so that USR2 will ...•••svn:r17317 Nick Mathewson2008-11-17
* More logging for mtbf/wfu calculations.•••svn:r16941 Nick Mathewson2008-09-23
* Make severity args to add_*_log() functions be const•••svn:r16775 Nick Mathewson2008-09-05
* Add --hush switch.•••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 Peter Palfrader2008-03-27
* r19089@catbus: nickm | 2008-03-27 11:05:23 -0400••• Free some static hashtables and the log mutex on exit. Backport candidate. svn:r14212 Nick Mathewson2008-03-27
* fix a leak when adding a temp log•••svn:r14203 Roger Dingledine2008-03-26
* fix mem leak in parsing log config lines•••svn:r14202 Roger Dingledine2008-03-26
* r18861@catbus: nickm | 2008-03-16 23:22:56 -0400••• Fix a couple of bugs in setting control log callback severity. svn:r14065 Nick Mathewson2008-03-17
* r18804@catbus: nickm | 2008-03-13 18:18:31 -0400••• Refactor log domain mask code so that nobody outside of log.c has to use SEVERITY_MASK_IDX. It is error-prone. svn:r14016 Nick Mathewson2008-03-13
* r18803@catbus: nickm | 2008-03-13 17:59:25 -0400••• Fix behavior of switch_logs_debug() in trunk. Fixes bug 626. Bugfix on r13875. svn:r14015 Nick Mathewson2008-03-13
* Assert that severity in logv() is sane. Interesting effects otherwise (It is...•••svn:r14006 Peter Palfrader2008-03-13
* r18753@catbus: nickm | 2008-03-11 14:56:39 -0400••• Make some assert()s into tor_assert()s. Make some tor_assert()s called from logging into assert()s, and document why. svn:r13977 Nick Mathewson2008-03-11
* r18639@catbus: nickm | 2008-03-07 20:11:48 -0500••• 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 Nick Mathewson2008-03-08
* r18630@catbus: nickm | 2008-03-05 17:31:33 -0500••• 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 Nick Mathewson2008-03-05
* r14373@tombo: nickm | 2008-02-21 16:29:18 -0500••• Apply warnings about implicit 64-to-32 conversions; some from Sebastian Hahn; some not. svn:r13664 Nick Mathewson2008-02-21
* Update some copyright notices: it is now 2008.•••svn:r13412 Nick Mathewson2008-02-07
* r17947@catbus: nickm | 2008-02-06 11:57:53 -0500••• Fix a bunch of DOCDOC items; document the --quiet flag; refactor a couple of XXXX020 items. svn:r13405 Nick Mathewson2008-02-06
* r15784@tombo: nickm | 2008-01-02 00:38:06 -0500••• 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 Nick Mathewson2008-01-02
* clean up copyrights, and assign 2007 copyrights to The Tor Project, Inc•••svn:r12786 Roger Dingledine2007-12-12
* free some more memory on exit•••svn:r10837 Roger Dingledine2007-07-16
* r13058@catbus: nickm | 2007-05-29 14:39:53 -0400••• Note that the fix for bug 222 should technically be turned into a real fix, not a kludge, one of these days. svn:r10397 Nick Mathewson2007-05-29
* r13054@catbus: nickm | 2007-05-29 14:20:50 -0400••• An even better workaround for the probably-already-fixed bug 222. svn:r10395 Nick Mathewson2007-05-29
* r13050@catbus: nickm | 2007-05-29 13:31:11 -0400••• Resolve all but 3 DOCDOCs. svn:r10393 Nick Mathewson2007-05-29
* r12852@catbus: nickm | 2007-05-22 11:00:27 -0400••• Use svn revisions consistently throughout all log messages. svn:r10291 Nick Mathewson2007-05-22
* polish r9726-r9903•••svn:r10182 Roger Dingledine2007-05-13
* r12607@catbus: nickm | 2007-04-30 21:36:28 -0400••• More attempt to fix win32 building. This time, with extra linking. svn:r10080 Nick Mathewson2007-05-01