fix: update time validation to check logging level before comparison

1 parent 09cdeb5b
......@@ -318,7 +318,7 @@ def validate_time(request):
if 'diff_server_time' in settings and settings["diff_server_time"]:
lima_menit = int(settings["diff_server_time"])
if not request.devel and abs(now - time_stamp) > lima_menit:
if not log.parent.level==logging.DEBUG and abs(now - time_stamp) > lima_menit:
log.info(f"req time {time_stamp} server time {now}")
raise JsonRpcInvalidTimeError
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!