#538 add exception log only if we have an error trace