Improve logging of servlet related errors