Adding logging for event processing