Skip to content

Commit

Permalink
Merge pull request #2844 from hosseinsh/fixing-metric-bug
Browse files Browse the repository at this point in the history
fixing metric bug
  • Loading branch information
hosseinsh committed Aug 9, 2019
2 parents bbc3bf5 + da9c91a commit d2c7330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lemur/common/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def sync_source(source):
return
try:
sync([source])
metrics.send(f"{function}.success", 'counter', '1', metric_tags={"source": source})
metrics.send(f"{function}.success", 'counter', 1, metric_tags={"source": source})
except SoftTimeLimitExceeded:
log_data["message"] = "Error syncing source: Time limit exceeded."
current_app.logger.error(log_data)
Expand Down

0 comments on commit d2c7330

Please sign in to comment.