mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Model, View: Some switch to logging.
This commit is contained in:
1 parent
bc78542d2c
commit
e925a95987
5 files changed
+20
-7
No files matched your search
@@ -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__
|
||||
|
||||
Reference in new issue
Block a user