coursera / metrics-datadog

metrics-datadog
Other
187 stars 105 forks source link

Log (client, server) failure to communicate with DataDog on warn level #76

Closed neurolabs closed 7 years ago

neurolabs commented 7 years ago

DataDog sometimes returns 4xx (e.g. 413 Request Entity too large) and 5xx (e.g. 504 Gateway timeout) errors. Instead of logging these on debug level, this change inspects the status code and logs http errors on warn level.