Fixed mistake in attempt to log exception.