Add some extra logging to the event persistence code.