We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7388848 commit 30dd101Copy full SHA for 30dd101
1 file changed
lib/lichess.py
@@ -75,6 +75,10 @@ def is_final(exception: Exception) -> bool:
75
76
def backoff_handler(details: BackoffDetails) -> None:
77
"""Log exceptions inside functions with the backoff decorator."""
78
+ args = details["args"]
79
+ kwargs = details["kwargs"]
80
+ if "token_test" in args:
81
+ kwargs["data"] = "<token redacted>"
82
logger.debug("Backing off {wait:0.1f} seconds after {tries} tries "
83
"calling function {target} with args {args} and kwargs {kwargs}".format(**details))
84
logger.debug(f"Exception: {traceback.format_exc()}")
0 commit comments