From eea12f807146c0acacbc66c16f614602e305b33b Mon Sep 17 00:00:00 2001 From: bluebamus Date: Tue, 22 Oct 2024 18:16:15 +0900 Subject: [PATCH] remove debug print code --- blog/views/opensource/opensource_forms.py | 1 - users/views/users_forms.py | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/blog/views/opensource/opensource_forms.py b/blog/views/opensource/opensource_forms.py index fb7aa77..26bd32f 100644 --- a/blog/views/opensource/opensource_forms.py +++ b/blog/views/opensource/opensource_forms.py @@ -34,7 +34,6 @@ def __init__(self, *args, **kwargs): self.fields["tag_set"].initial = ",".join( str(tag.tag) for tag in self.instance.tag_set.all() ) - print("final tag !!!!!!!! : ", self.fields["tag_set"].initial) class Meta: model = OpenSourcePost diff --git a/users/views/users_forms.py b/users/views/users_forms.py index 6b727d4..c1476a1 100644 --- a/users/views/users_forms.py +++ b/users/views/users_forms.py @@ -87,7 +87,10 @@ def check_email_validation_with_dns(self, email: str) -> [str, bool]: return emailinfo.normalized, True except EmailNotValidError as e: - print(str(e)) + logger.debug( + "EmailNotValidError :", + extra={"error : ": str(e)}, + ) return "", False def clean(self):