DRY up the two event loggings