Skip to content

Commit 3298982

Browse files
committed
Logging to logging.debug() will create a root logger handler if none existed, which can result in logging from later application code using the pyjwkest library unintentionally being activated. Using logger.debug() instead.
1 parent d056aac commit 3298982

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/jwkest/jwt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def pack(self, parts=None, headers=None):
8282
else:
8383
headers = {'alg': 'none'}
8484

85-
logging.debug('JWT header: {}'.format(headers))
85+
logger.debug('JWT header: {}'.format(headers))
8686

8787
if not parts:
8888
return ".".join([a.decode() for a in self.b64part])

0 commit comments

Comments
 (0)