fixed error-logging on REST-exceptions