Changed exception logging for code review