diff options
author | Roger Dingledine <arma@torproject.org> | 2010-01-12 12:18:08 -0500 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2010-01-15 15:56:53 -0500 |
commit | fd5eb23c29dc6c48e0a0ea44f8236b8b2f53a47b (patch) | |
tree | a9a7bc661e375c64088b6d09be8b009eec721b15 | |
parent | 356c927476b0480eda614006d5d5e210d965c553 (diff) | |
download | tor-fd5eb23c29dc6c48e0a0ea44f8236b8b2f53a47b.tar tor-fd5eb23c29dc6c48e0a0ea44f8236b8b2f53a47b.tar.gz |
don't warn if stats/bridge-stats is missing
if we try to read it to publish stats and it's not there,
that means there are no stats to publish.
reported by swisstorexit.
-rw-r--r-- | src/or/geoip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/geoip.c b/src/or/geoip.c index b0f97d4ff..a00280e39 100644 --- a/src/or/geoip.c +++ b/src/or/geoip.c @@ -1237,7 +1237,7 @@ load_bridge_stats(time_t now) if (check_private_dir(statsdir, CPD_CREATE) < 0) goto done; fname = get_datadir_fname2("stats", "bridge-stats"); - contents = read_file_to_str(fname, 0, NULL); + contents = read_file_to_str(fname, RFTS_IGNORE_MISSING, NULL); if (contents) { controller_str = parse_bridge_stats_controller(contents, now); if (controller_str) { |