No output in production mode

Logging error in production mode is enough. Outputing message about error in non-html content types only breaks validity of json, xml, etc. responses.