[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r8222: clean up logging conventions in do_list_fingerprint() (tor/trunk/src/or)



Author: arma
Date: 2006-08-23 20:54:18 -0400 (Wed, 23 Aug 2006)
New Revision: 8222

Modified:
   tor/trunk/src/or/main.c
Log:
clean up logging conventions in do_list_fingerprint()


Modified: tor/trunk/src/or/main.c
===================================================================
--- tor/trunk/src/or/main.c	2006-08-23 23:45:03 UTC (rev 8221)
+++ tor/trunk/src/or/main.c	2006-08-24 00:54:18 UTC (rev 8222)
@@ -1584,7 +1584,8 @@
   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 @@
     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);