fixing metric bug

This commit is contained in:
Hossein Shafagh 2019-08-08 17:56:22 -07:00
parent bbc3bf513d
commit da9c91afb4
1 changed files with 1 additions and 1 deletions

View File

@ -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)