Closed neurolabs closed 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.
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.