Updates logger codebase-wise to match the Logger updates

Logger instances now specify the logger prefix so the logger can be properly loaded, fixing the issues with the cli file logger
This commit is contained in:
Sergi Delgado Segura
2020-01-23 18:16:25 +01:00
parent 1f46e6eb26
commit 6884db9f58
9 changed files with 22 additions and 11 deletions

View File

@@ -4,12 +4,12 @@ from binascii import unhexlify
from common.constants import LOCATOR_LEN_HEX
from common.cryptographer import Cryptographer
from pisa import errors
from pisa import errors, LOG_PREFIX
from common.logger import Logger
from common.appointment import Appointment
from pisa.block_processor import BlockProcessor
logger = Logger("Inspector")
logger = Logger(actor="Inspector", log_name_prefix=LOG_PREFIX)
# FIXME: The inspector logs the wrong messages sent form the users. A possible attack surface would be to send a really
# long field that, even if not accepted by PISA, would be stored in the logs. This is a possible DoS surface