Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Adding proper formatting to message
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-jakoby committed Sep 28, 2016
1 parent b0e77c2 commit 8520eb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyformance/reporters/newrelic_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def __init__(self, license_key, registry=None, name=socket.gethostname(), report
def metrics_generator():
metrics = self.create_metrics(self.registry, 'new_relic_agent_sink', 'Custom')
if logger.isEnabledFor(logging.DEBUG):
logger.debug('Generating a list of metrics for the new relic agent: {}', json.dumps(metrics))
logger.debug('Generating a list of metrics for the new relic agent: {}'.format(
json.dumps(metrics)))
return six.iteritems(metrics)

newrelic.agent.register_data_source(metrics_generator)
Expand Down

0 comments on commit 8520eb2

Please sign in to comment.