π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
[WEB-5224] chore: raise warning instead of logging an exception for webhook_send_task (#7996)
Sangeethaa8b6930486a4
diff --git a/apps/api/plane/bgtasks/webhook_task.py b/apps/api/plane/bgtasks/webhook_task.pyindex 2504eb7341..3d04a65b71 100644--- a/apps/api/plane/bgtasks/webhook_task.py+++ b/apps/api/plane/bgtasks/webhook_task.py@@ -86,7 +86,6 @@ def get_issue_prefetches():]-def save_webhook_log(webhook: Webhook,request_method: str,@@ -98,10 +97,9 @@ def save_webhook_log(retry_count: int,event_type: str,) -> None:-# webhook_logsmongo_collection = MongoConnection.get_collection("webhook_logs")-+log_data = {"workspace_id": str(webhook.workspace_id),"webhook": str(webhook.id),@@ -123,7 +121,7 @@ def save_webhook_log(logger.info("Webhook log saved successfully to mongo")mongo_save_success = Trueexcept Exception as e:- log_exception(e)+ log_exception(e, warning=True)logger.error(f"Failed to save webhook log: {e}")mongo_save_success = False@@ -134,7 +132,7 @@ def save_webhook_log(WebhookLog.objects.create(**log_data)logger.info("Webhook log saved successfully to database")except Exception as e:- log_exception(e)+ log_exception(e, warning=True)logger.error(f"Failed to save webhook log: {e}")@@ -244,7 +242,7 @@ def send_webhook_deactivation_email(webhook_id: str, receiver_id: str, current_smsg.send()logger.info("Email sent successfully.")except Exception as e:- log_exception(e)+ log_exception(e, warning=True)logger.error(f"Failed to send email: {e}")