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

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



commit 7a446e6754b21eae1b0cfe3b0cf737ac2be964a9
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
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)