mirror of
https://github.com/mtan93/cachet-url-monitor.git
synced 2026-03-08 05:31:58 +00:00
Fixed metric latency unit and logging (#49)
* move latency_unit into cachet dictionary * log actual metric latency_unit * also update config in readme * also update config description in readme
This commit is contained in:
@@ -264,7 +264,7 @@ class Configuration(object):
|
||||
|
||||
if metrics_request.ok:
|
||||
# Successful metrics upload
|
||||
self.logger.info('Metric uploaded: %.6f seconds' % (value,))
|
||||
self.logger.info('Metric uploaded: %.6f %s' % (value, self.latency_unit))
|
||||
else:
|
||||
self.logger.warning('Metric upload failed with status [%d]' %
|
||||
(metrics_request.status_code,))
|
||||
|
||||
Reference in New Issue
Block a user