Skip to content

Commit f8b72f6

Browse files
committed
consistent logging as info for reading local/remote files
1 parent cece38d commit f8b72f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cryptojwt/key_bundle.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def do_local_jwk(self, filename):
304304
305305
:param filename: Name of the file from which the JWKS should be loaded
306306
"""
307-
LOGGER.debug("Reading JWKS from %s", filename)
307+
LOGGER.info("Reading local JWKS from %s", filename)
308308
with open(filename) as input_file:
309309
_info = json.load(input_file)
310310
if 'keys' in _info:
@@ -322,7 +322,7 @@ def do_local_der(self, filename, keytype, keyusage=None, kid=''):
322322
:param keytype: Presently 'rsa' and 'ec' supported
323323
:param keyusage: encryption ('enc') or signing ('sig') or both
324324
"""
325-
LOGGER.debug("Reading DER from %s", filename)
325+
LOGGER.info("Reading local DER from %s", filename)
326326
key_args = {}
327327
_kty = keytype.lower()
328328
if _kty in ['rsa', 'ec']:
@@ -354,6 +354,7 @@ def do_remote(self):
354354
# if self.verify_ssl is not None:
355355
# self.httpc_params["verify"] = self.verify_ssl
356356

357+
LOGGER.info("Reading remote JWKS from %s", self.source)
357358
try:
358359
LOGGER.debug('KeyBundle fetch keys from: %s', self.source)
359360
httpc_params = self.httpc_params.copy()

0 commit comments

Comments
 (0)