logging: basics
This commit is contained in:
@@ -31,6 +31,10 @@ import ecdsa
|
||||
|
||||
from . import util
|
||||
from .util import profiler, bh2u
|
||||
from .logging import get_logger
|
||||
|
||||
|
||||
_logger = get_logger(__name__)
|
||||
|
||||
|
||||
# algo OIDs
|
||||
@@ -328,7 +332,7 @@ def load_certificates(ca_path):
|
||||
except BaseException as e:
|
||||
# with open('/tmp/tmp.txt', 'w') as f:
|
||||
# f.write(pem.pem(b, 'CERTIFICATE').decode('ascii'))
|
||||
util.print_error("cert error:", e)
|
||||
_logger.info(f"cert error: {e}")
|
||||
continue
|
||||
|
||||
fp = x.getFingerprint()
|
||||
|
||||
Reference in New Issue
Block a user