mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 06:04:21 +01:00
Fixes cli console log levels so Cryptographer's sensitive info is only logged in disk
This commit is contained in:
@@ -129,10 +129,10 @@ def setup_logging(log_file_path, log_name_prefix):
|
||||
|
||||
# Create the file logger
|
||||
f_logger = logging.getLogger("{}_file_log".format(log_name_prefix))
|
||||
f_logger.setLevel(logging.INFO)
|
||||
f_logger.setLevel(logging.DEBUG)
|
||||
|
||||
fh = logging.FileHandler(log_file_path)
|
||||
fh.setLevel(logging.INFO)
|
||||
fh.setLevel(logging.DEBUG)
|
||||
fh_formatter = logging.Formatter("%(message)s")
|
||||
fh.setFormatter(fh_formatter)
|
||||
f_logger.addHandler(fh)
|
||||
|
||||
Reference in New Issue
Block a user