Use repr over str to log exceptions as it gives more detail