Model, View: Some switch to logging.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-07-05 16:49:26 +02:00
1 parent bc78542d2c
commit e925a95987
5 files changed
+20 -7

No files matched your search

+5 -1
View File
@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-
import logging
from tools import trace, timer
from View.ASubWindow import ASubMainWindow
@@ -23,6 +25,8 @@ from PyQt5.QtWidgets import (
QProgressBar, QLabel, QTextEdit,
)
logger = logging.getLogger()
_translate = QCoreApplication.translate
class ReplWindow(ASubMainWindow, ListedSubWindow):
@@ -71,7 +75,7 @@ class ReplWindow(ASubMainWindow, ListedSubWindow):
self._history_ind = 0
rich_code = "self.__debug_exec_result__ = " + code
print(f"[DEBUG] ! {code}")
logger.debug(f"{code}")
try:
value = exec(rich_code)
value = self.__debug_exec_result__