Merge pull request #390 from CartoDB/fix-typo-logger

Fix typo while using logger
This commit is contained in:
Daniel 2017-07-21 18:16:28 +02:00 committed by GitHub
commit 0cd0087f3f

View File

@ -147,7 +147,7 @@ class MetricsLogger(object):
json.dump(data, logfile) json.dump(data, logfile)
logfile.write('\n') logfile.write('\n')
except BaseException as e: 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) exception=e)
def collect_data(self, data): def collect_data(self, data):