Don't log names of internal symbols that can be used for attacks

This commit is contained in:
Daniel Markstedt 2023-10-31 22:56:03 +09:00
parent 37b9110c99
commit 7b5d5332cf
2 changed files with 3 additions and 4 deletions

View File

@ -107,8 +107,7 @@ class CtrlBoardMenuUpdateEventHandler(Observer):
except AttributeError:
log = logging.getLogger(__name__)
log.error(
"Handler function [%s] not found or returned an error. Skipping.",
str(handler_function_name),
"Handler function not found or returned an error. Skipping.",
)
# noinspection PyUnusedLocal

View File

@ -8,7 +8,7 @@ from piscsi.piscsi_cmds import PiscsiCmds
class CtrlBoardMenuBuilder(MenuBuilder):
"""Class fgor building the control board UI specific menus"""
"""Class for building the control board UI specific menus"""
SCSI_ID_MENU = "scsi_id_menu"
ACTION_MENU = "action_menu"
@ -48,7 +48,7 @@ class CtrlBoardMenuBuilder(MenuBuilder):
return self.create_device_info_menu(context_object)
log = logging.getLogger(__name__)
log.warning("Provided menu name [%s] cannot be built!", name)
log.error("Provided menu name cannot be built!")
return self.create_scsi_id_list_menu(context_object)