remove exc_info from LOG.exception (#246)

This commit is contained in:
Shuchang Zheng
2024-04-30 00:27:32 -07:00
committed by GitHub
parent 45d11e5a7f
commit b6a85cf3a5
8 changed files with 20 additions and 22 deletions

View File

@@ -85,7 +85,6 @@ class Block(BaseModel, abc.ABC):
except Exception:
LOG.exception(
"Block execution failed",
exc_info=True,
workflow_run_id=workflow_run_id,
block_label=self.label,
block_type=self.block_type,
@@ -657,7 +656,7 @@ class UploadToS3Block(Block):
uri=self._get_s3_uri(workflow_run_id, self.path), file_path=self.path
)
except Exception as e:
LOG.exception("UploadToS3Block: Failed to upload file to S3", file_path=self.path, exc_info=True)
LOG.exception("UploadToS3Block: Failed to upload file to S3", file_path=self.path)
raise e
LOG.info("UploadToS3Block: File(s) uploaded to S3", file_path=self.path)

View File

@@ -192,7 +192,6 @@ class WorkflowService:
LOG.exception(
f"Error while executing workflow run {workflow_run.workflow_run_id}",
workflow_run_id=workflow_run.workflow_run_id,
exc_info=True,
)
await self.mark_workflow_run_as_failed(workflow_run_id=workflow_run.workflow_run_id)
raise e