Add more detail to exception logging