Adding logging to update events