Improved logging of event handling.