HH-31752 Fix log exception output