log error that occur during request handling