File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
20
20
### Fixed
21
21
- Type information is now provided following [ PEP 561] ( https://www.python.org/dev/peps/pep-0561/ ) .
22
22
- Remove deprecation warnings due to usage of ` utcnow ` and ` utcfromtimestamp ` .
23
+ - Tokens cache ` DEBUG ` logs will not display tokens anymore.
23
24
24
25
### Removed
25
26
- Removing support for Python ` 3.7 ` .
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ def _add_token(
97
97
self .tokens [key ] = token , expiry , refresh_token
98
98
self ._save_tokens ()
99
99
logger .debug (
100
- f'Inserting token expiring on { datetime .datetime .fromtimestamp (expiry , datetime .timezone .utc )} with "{ key } " key: { token } '
100
+ f'Inserting token expiring on { datetime .datetime .fromtimestamp (expiry , datetime .timezone .utc )} with "{ key } " key. '
101
101
)
102
102
103
103
def get_token (
@@ -184,7 +184,7 @@ def get_token(
184
184
return bearer
185
185
186
186
logger .debug (
187
- f"User was not authenticated: key { key } cannot be found in { self .tokens } ."
187
+ f"User was not authenticated: key { key } cannot be found in { list ( self .tokens ) } ."
188
188
)
189
189
raise AuthenticationFailed ()
190
190
You can’t perform that action at this time.
0 commit comments