Skip to content

Commit

Permalink
Log remote address from traefik when present
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Oct 6, 2022
1 parent 7ec5b4a commit 0ec21d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/wopiutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def validateAndLogHeaders(op):
log.debug('msg="%s: client context" user="%s" filename="%s" token="%s" client="%s" deviceId="%s" reqId="%s" sessionId="%s" '
'app="%s" appEndpoint="%s" correlationId="%s" wopits="%s"' %
(op.title(), acctok['userid'][-20:], acctok['filename'],
flask.request.args['access_token'][-20:], flask.request.remote_addr,
flask.request.args['access_token'][-20:], flask.request.headers.get('X-Real-Ip', flask.request.remote_addr),
flask.request.headers.get('X-WOPI-DeviceId'), flask.request.headers.get('X-Request-Id'),
flask.request.headers.get('X-WOPI-SessionId'), flask.request.headers.get('X-WOPI-RequestingApplication'),
flask.request.headers.get('X-WOPI-AppEndpoint'), flask.request.headers.get('X-WOPI-CorrelationId'), wopits))
Expand Down

0 comments on commit 0ec21d7

Please sign in to comment.