Commit b79fc28a authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

ListedSubWindow: Logging minor change.

Showing with 3 additions and 4 deletions
+3 -4
......@@ -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)
......
......@@ -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(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment