]> git.ipfire.org Git - thirdparty/tor.git/commit
Log descriptions of nodes, not just nicknames.
authorNick Mathewson <nickm@torproject.org>
Mon, 16 May 2011 01:58:46 +0000 (21:58 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 16 May 2011 01:58:46 +0000 (21:58 -0400)
commitb95dd03e5f6505ce2e78fe34a20bf5e5c970e6eb
treed60ca6da0feb52fc330ffa88ff871e6c35781e63
parentede102fd4675af8ac4060767f0348f3c93617e80
Log descriptions of nodes, not just nicknames.

This patch introduces a few new functions in router.c to produce a
more helpful description of a node than its nickame, and then tweaks
nearly all log messages taking a nickname as an argument to call these
functions instead.

There are a few cases where I left the old log messages alone: in
these cases, the nickname was that of an authority (whose nicknames
are useful and unique), or the message already included an identity
and/or an address.  I might have missed a couple more too.

This is a fix for bug 3045.
15 files changed:
src/or/circuitbuild.c
src/or/circuitlist.c
src/or/circuituse.c
src/or/command.c
src/or/connection_edge.c
src/or/directory.c
src/or/dirserv.c
src/or/relay.c
src/or/rendclient.c
src/or/rendservice.c
src/or/rephist.c
src/or/router.c
src/or/router.h
src/or/routerlist.c
src/or/routerparse.c