feat(remove_app_and_related_data_task): Remove colored logging for error messages

Simplifies error logging by removing the use of colored output
via the click library. This change ensures consistency in log
outputs and removes a dependency on terminal color support.

Signed-off-by: -LAN- <laipz8200@outlook.com>
pull/19430/head
-LAN- 1 year ago
parent 68616271db
commit c4c868ce30
No known key found for this signature in database
GPG Key ID: 6BA0D108DED011FF

@ -200,7 +200,7 @@ def _delete_app_workflow_node_executions(tenant_id: str, app_id: str):
errmsg = (
f"Failed to delete workflow node executions for tenant {tenant_id} and app {app_id}, app's owner not found"
)
logging.error(click.style(errmsg, fg="red"))
logging.error(errmsg)
raise ValueError(errmsg)
# Create a repository instance for WorkflowNodeExecution

Loading…
Cancel
Save