diff options
author | Roger Dingledine <arma@torproject.org> | 2006-08-24 00:54:18 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-08-24 00:54:18 +0000 |
commit | 9ebaf01096699aa3cf3aa95532b375f93ebc8e2e (patch) | |
tree | 1b0e684007a5bc2f22a8f073eb5e48c5323d0a2e | |
parent | 41d8d77c8be0bfad95ade35484c502a19020d593 (diff) | |
download | tor-9ebaf01096699aa3cf3aa95532b375f93ebc8e2e.tar.gz tor-9ebaf01096699aa3cf3aa95532b375f93ebc8e2e.zip |
clean up logging conventions in do_list_fingerprint()
svn:r8222
-rw-r--r-- | src/or/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c index 191954185e..0f26ce4217 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1584,7 +1584,8 @@ do_list_fingerprint(void) crypto_pk_env_t *k; const char *nickname = get_options()->Nickname; if (!server_mode(get_options())) { - printf("Clients don't have long-term identity keys. Exiting.\n"); + log_err(LD_GENERAL, + "Clients don't have long-term identity keys. Exiting.\n"); return -1; } tor_assert(nickname); @@ -1597,7 +1598,7 @@ do_list_fingerprint(void) return -1; } if (crypto_pk_get_fingerprint(k, buf, 1)<0) { - log_warn(LD_BUG, "Error computing fingerprint"); + log_err(LD_BUG, "Error computing fingerprint"); return -1; } printf("%s %s\n", nickname, buf); |