Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
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 176ede75
authored
Apr 14, 2026
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
add debug logging for bad request handling
1 parent
f8a44226
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
opensipkd/base/__init__.py
opensipkd/base/__init__.py
View file @
176ede7
...
@@ -776,6 +776,9 @@ def bad_request_view(exc, request):
...
@@ -776,6 +776,9 @@ def bad_request_view(exc, request):
# Arahkan ulang ke halaman login (misalnya route 'login')
# Arahkan ulang ke halaman login (misalnya route 'login')
request
.
session
.
flash
(
"Permintaan tidak valid. Silakan ulangi kembali. atau origin tidak diizinkan."
,
"error"
)
request
.
session
.
flash
(
"Permintaan tidak valid. Silakan ulangi kembali. atau origin tidak diizinkan."
,
"error"
)
_logging
.
debug
(
f
"Bad Request: {exc} from {request.url}"
)
_logging
.
debug
(
f
"RFeferrer: {request.referrer} or {request.route_url('base-home')}"
)
referrer
=
request
.
referrer
or
request
.
route_url
(
'base-home'
)
referrer
=
request
.
referrer
or
request
.
route_url
(
'base-home'
)
response
=
HTTPFound
(
location
=
referrer
)
response
=
HTTPFound
(
location
=
referrer
)
response
.
headers
.
extend
(
headers
)
response
.
headers
.
extend
(
headers
)
...
...
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