[or-cvs] [tor/release-0.2.2] Tell which geoip file we're parsing

arma at torproject.org arma at torproject.org
Tue Jan 25 21:28:41 UTC 2011


commit 7a446e6754b21eae1b0cfe3b0cf737ac2be964a9
Author: Sebastian Hahn <sebastian at torproject.org>
Date:   Tue Jan 25 13:16:28 2011 +0100

    Tell which geoip file we're parsing
---
 changes/bug2432 |    5 +++++
 src/or/geoip.c  |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/changes/bug2432 b/changes/bug2432
new file mode 100644
index 0000000..407c56b
--- /dev/null
+++ b/changes/bug2432
@@ -0,0 +1,5 @@
+  o Minor features:
+    - Provide a log message stating which geoip file we're parsing
+      instead of just stating that we're parsing the geoip file.
+      Implements ticket 2432.
+
diff --git a/src/or/geoip.c b/src/or/geoip.c
index d4e279f..e5694b9 100644
--- a/src/or/geoip.c
+++ b/src/or/geoip.c
@@ -214,7 +214,7 @@ geoip_load_file(const char *filename, or_options_t *options)
     smartlist_free(geoip_entries);
   }
   geoip_entries = smartlist_create();
-  log_notice(LD_GENERAL, "Parsing GEOIP file.");
+  log_notice(LD_GENERAL, "Parsing GEOIP file %s.", filename);
   while (!feof(f)) {
     char buf[512];
     if (fgets(buf, (int)sizeof(buf), f) == NULL)





More information about the tor-commits mailing list