From e84cdc10ccb4b7c588a4994c98bf3dbf6ca24a2b Mon Sep 17 00:00:00 2001 From: lethanhdat762003 Date: Wed, 31 Dec 2025 11:35:56 +0700 Subject: [PATCH 1/2] chore: change the log message to get only email nad org slug --- common/apps/organization/tasks.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/apps/organization/tasks.py b/common/apps/organization/tasks.py index 435c1cd..2f34758 100644 --- a/common/apps/organization/tasks.py +++ b/common/apps/organization/tasks.py @@ -20,9 +20,7 @@ def get_new_organization_handler(): @task(name="spacedf.tasks.new_organization", max_retries=3) @transaction.atomic def create_organization(id, name, slug_name, is_active, owner, created_at, updated_at): - logger.info( - f"create_organization({id}, {name}, {slug_name}, {is_active}, {owner}, {created_at}, {updated_at})" - ) + logger.info(f"create_organization: owner_email={owner.get('email')}, org-slug={slug_name}") organization = Organization( schema_name=slug_name, From 56710432d5db2e0c6081b506f9bc44f5cc494257 Mon Sep 17 00:00:00 2001 From: lethanhdat762003 Date: Wed, 31 Dec 2025 11:39:36 +0700 Subject: [PATCH 2/2] chore: apply snake_case convention --- common/apps/organization/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/apps/organization/tasks.py b/common/apps/organization/tasks.py index 2f34758..94e6f79 100644 --- a/common/apps/organization/tasks.py +++ b/common/apps/organization/tasks.py @@ -20,7 +20,7 @@ def get_new_organization_handler(): @task(name="spacedf.tasks.new_organization", max_retries=3) @transaction.atomic def create_organization(id, name, slug_name, is_active, owner, created_at, updated_at): - logger.info(f"create_organization: owner_email={owner.get('email')}, org-slug={slug_name}") + logger.info(f"create_organization: owner_email={owner.get('email')}, org_slug={slug_name}") organization = Organization( schema_name=slug_name,