improved event handling logging