Add logging on HTTP 500