Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-tools
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b3e9a557
authored
Aug 12, 2025
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: update time validation to check logging level before comparison
1 parent
09cdeb5b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
opensipkd/tools/api.py
opensipkd/tools/api.py
View file @
b3e9a55
...
@@ -318,7 +318,7 @@ def validate_time(request):
...
@@ -318,7 +318,7 @@ def validate_time(request):
if
'diff_server_time'
in
settings
and
settings
[
"diff_server_time"
]:
if
'diff_server_time'
in
settings
and
settings
[
"diff_server_time"
]:
lima_menit
=
int
(
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}"
)
log
.
info
(
f
"req time {time_stamp} server time {now}"
)
raise
JsonRpcInvalidTimeError
raise
JsonRpcInvalidTimeError
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment