summaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-05-22 15:48:46 +0000
committerNick Mathewson <nickm@torproject.org>2007-05-22 15:48:46 +0000
commite935d73b34094a88dbd997769be1c52b633fc3d3 (patch)
treeb4ce641936e6998987b887e94374b761bd9f6d2b /src/or/main.c
parent4ec5e139c8442b321ef9b58684da547ea0388261 (diff)
downloadtor-e935d73b34094a88dbd997769be1c52b633fc3d3.tar.gz
tor-e935d73b34094a88dbd997769be1c52b633fc3d3.zip
r12852@catbus: nickm | 2007-05-22 11:00:27 -0400
Use svn revisions consistently throughout all log messages. svn:r10291
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index f0522f6fa4..315e0f11ac 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1684,11 +1684,15 @@ handle_signals(int is_parent)
static int
tor_init(int argc, char *argv[])
{
+ char buf[256];
time_of_process_start = time(NULL);
if (!closeable_connection_lst)
closeable_connection_lst = smartlist_create();
if (!active_linked_connection_lst)
active_linked_connection_lst = smartlist_create();
+ /* Have the log set up with our application name. */
+ tor_snprintf(buf, sizeof(buf), "Tor %s", get_version());
+ log_set_application_name(buf);
/* Initialize the history structures. */
rep_hist_init();
/* Initialize the service cache. */
@@ -1700,7 +1704,7 @@ tor_init(int argc, char *argv[])
add_temp_log();
log(LOG_NOTICE, LD_GENERAL, "Tor v%s. This is experimental software. "
- "Do not rely on it for strong anonymity. (Running on %s)",VERSION,
+ "Do not rely on it for strong anonymity. (Running on %s)",get_version(),
get_uname());
if (network_init()<0) {