Skip to content

Commit

Permalink
#3486 never use print() directly from modules
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 28, 2022
1 parent d8636bd commit a3893d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/server/auth/keycloak_auth.py
Expand Up @@ -69,7 +69,7 @@ def get_challenge(self, digests):
return self.salt, "keycloak"

def check(self, response_json) -> bool:
print("check(%s)" % (response_json,))
log(f"check({response_json!r})")
assert self.challenge_sent
if not response_json:
log.error("Error: keycloak authentication failed")
Expand All @@ -83,7 +83,7 @@ def check(self, response_json) -> bool:
log.error(" invalid response received from authorization endpoint")
log("failed to parse json: %r", response_json, exc_info=True)
return False
print("json.loads(%s)=%s", response_json, response)
log(f"json.loads({response_json!r})={response!r}")

if not isinstance(response, dict):
log.error("Error: keycloak authentication failed")
Expand Down

0 comments on commit a3893d1

Please sign in to comment.