Skip to content

Commit

Permalink
fixing metric bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hosseinsh committed Aug 9, 2019
1 parent bbc3bf5 commit da9c91a
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 da9c91a

Please sign in to comment.