Tell which geoip file we're parsing

This commit is contained in:
Sebastian Hahn 2011-01-25 13:16:28 +01:00 committed by Nick Mathewson
parent 68f8ca357f
commit 7a446e6754
2 changed files with 6 additions and 1 deletions

5
changes/bug2432 Normal file
View File

@ -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.

View File

@ -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)