Fix typo while logging caught error in geocoder

This commit is contained in:
Daniel García Aubert
2017-07-21 14:43:41 +02:00
parent 82b7a95af6
commit 13a876b854

View File

@@ -147,7 +147,7 @@ class MetricsLogger(object):
json.dump(data, logfile)
logfile.write('\n')
except BaseException as e:
self._logger("Error dumping metrics to file {0}".format(log_path),
self._logger.error("Error dumping metrics to file {0}".format(log_path),
exception=e)
def collect_data(self, data):