Skip to content

Commit

Permalink
Add debug output to dump identity
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Jun 18, 2024
1 parent 793862d commit c344940
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
FROM sourcepole/qwc-map-viewer-base:latest-2024-lts

COPY prod/ /qwc2

COPY debug.patch /tmp/

RUN apk add patch
RUN patch -p1 < /tmp/debug.patch
12 changes: 12 additions & 0 deletions debug.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -rupN a/srv/qwc_service/server.py b/srv/qwc_service/server.py
--- a/srv/qwc_service/server.py 2024-06-18 17:40:20.463527587 +0200
+++ b/srv/qwc_service/server.py 2024-06-18 17:40:45.022453691 +0200
@@ -84,6 +84,8 @@ def assert_user_is_logged():
@app.route('/')
@optional_auth
def index():
+ print("XXXXXX")
+ print(get_identity())
qwc2_viewer = qwc2_viewer_handler()
return qwc2_viewer.qwc2_index(get_identity(), request.args, request.url)

0 comments on commit c344940

Please sign in to comment.