Skip to content

Commit 947ca89

Browse files
committed
fix: add log instance to AS
1 parent 38433c1 commit 947ca89

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/DIRAC/FrameworkSystem/private/authorization/AuthServer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,10 @@ def handle_response(self, status_code=None, payload=None, headers=None, newSessi
343343
344344
:return: TornadoResponse()
345345
"""
346-
sLog.debug("Handle authorization response with %s status code:" % status_code, payload)
346+
sLog.debug(
347+
f"Handle authorization response with {status_code} status code:",
348+
"HTML page" if payload.startswith("<!DOCTYPE html>") else payload,
349+
)
347350
resp = TornadoResponse(payload, status_code)
348351
if headers:
349352
sLog.debug("Headers:", headers)

0 commit comments

Comments
 (0)