Log notification ID on deliver tasks and in clients.

- help tie things together  in Kibana.
This commit is contained in:
Martyn Inglis
2016-12-20 13:24:08 +00:00
parent 31b2c3f402
commit 2d946736e0
3 changed files with 9 additions and 3 deletions

View File

@@ -113,6 +113,6 @@ class FiretextClient(SmsClient):
raise FiretextClientResponseException(response=e.response, exception=e)
finally:
elapsed_time = monotonic() - start_time
self.current_app.logger.info("Firetext request finished in {}".format(elapsed_time))
self.current_app.logger.info("Firetext request for {} finished in {}".format(reference, elapsed_time))
self.statsd_client.timing("clients.firetext.request-time", elapsed_time)
return response