Prevent double error logging

This commit is contained in:
Georg Krause 2022-09-15 15:12:50 +02:00
parent 4e6f57e3da
commit e3c81ca397
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ def verify_date(raw_date):
delta = datetime.timedelta(seconds=DATE_HEADER_VALID_FOR)
now = timezone.now()
if dt < now - delta or dt > now + delta:
logger.error(
logger.debug(
f"Request Date {raw_date} is too too far in the future or in the past"
)
raise forms.ValidationError(