Skip to content

Commit 4de5722

Browse files
committed
Patched a bug in pyjwkest.jwt which would cause a root logger handler to be created if none existed, resulting in logging in following code being emitted even if intentionally set up to be visible. (See IdentityPython/pyjwkest#97 , created to fix this upstream)
- Legacy-Id: 17911
1 parent b27d519 commit 4de5722

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

patch/fix-jwkest-jwt-logging.patch

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--- jwkest/jwt.py.orig 2020-06-06 17:58:07.609708595 +0200
2+
+++ jwkest/jwt.py 2020-06-06 17:58:20.734088027 +0200
3+
@@ -82,7 +82,7 @@
4+
else:
5+
headers = {'alg': 'none'}
6+
7+
- logging.debug('JWT header: {}'.format(headers))
8+
+ logger.debug('JWT header: {}'.format(headers))
9+
10+
if not parts:
11+
return ".".join([a.decode() for a in self.b64part])
12+

0 commit comments

Comments
 (0)