Revert changes for logging exceptions