fixed exception logging lines