mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 22:47:12 +01:00
Tell which geoip file we're parsing
This commit is contained in:
parent
68f8ca357f
commit
7a446e6754
2 changed files with 6 additions and 1 deletions
5
changes/bug2432
Normal file
5
changes/bug2432
Normal 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.
|
||||||
|
|
|
@ -214,7 +214,7 @@ geoip_load_file(const char *filename, or_options_t *options)
|
||||||
smartlist_free(geoip_entries);
|
smartlist_free(geoip_entries);
|
||||||
}
|
}
|
||||||
geoip_entries = smartlist_create();
|
geoip_entries = smartlist_create();
|
||||||
log_notice(LD_GENERAL, "Parsing GEOIP file.");
|
log_notice(LD_GENERAL, "Parsing GEOIP file %s.", filename);
|
||||||
while (!feof(f)) {
|
while (!feof(f)) {
|
||||||
char buf[512];
|
char buf[512];
|
||||||
if (fgets(buf, (int)sizeof(buf), f) == NULL)
|
if (fgets(buf, (int)sizeof(buf), f) == NULL)
|
||||||
|
|
Loading…
Add table
Reference in a new issue