Renamed logException to exception