ListedSubWindow: Logging minor change.

setup.py
Pierre-Antoine Rouby 2024-02-13 13:33:31 +01:00
parent ef72ff6903
commit b79fc28a5f
2 changed files with 3 additions and 4 deletions

View File

@ -626,7 +626,6 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
# _translate("MainWindowdow", "Activate this windowdow")
# )
h = window.hash()
logger.info(f"Get hash: {h}")
fn = lambda_generator(h)
action.triggered.connect(fn)

View File

@ -43,10 +43,10 @@ class ListedSubWindow(object):
self._update_window_list()
try:
logger.info(
logger.debug(
f"Open window: {name}: {self._sub_win_cnt}")
except Exception:
logger.info(f"Open window: {name}: {self._sub_win_cnt}: X")
logger.debug(f"Open window: {name}: {self._sub_win_cnt}: X")
logger.warning(f"Sub window without hash method !")
def sub_win_del(self, h):
@ -59,7 +59,7 @@ class ListedSubWindow(object):
self._sub_win_cnt = len(self._sub_win_list)
self._update_window_list()
logger.info(f"Close window: ({h}) {self._sub_win_cnt}")
logger.debug(f"Close window: ({h}) {self._sub_win_cnt}")
def _sub_win_exists(self, h):
res = reduce(