kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Prevent double error logging
rodzic
4e6f57e3da
commit
e3c81ca397
|
@ -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(
|
||||
|
|
Ładowanie…
Reference in New Issue