pamhyr: Start switch to logging for program logs.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-07-05 16:14:44 +02:00
1 parent 9b9ef8ee4b
commit 2f78432005
6 files changed
+55 -14

No files matched your search

+6 -1
View File
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-
import logging
from copy import deepcopy
from config import Config
from View.ASubWindow import ASubWindow
from View.ListedSubWindow import ListedSubWindow
@@ -27,6 +30,8 @@ from PyQt5.QtWidgets import (
from Solver.Solvers import solver_long_name
logger = logging.getLogger()
class SolverTableModel(QAbstractTableModel):
def __init__(self, headers=[], rows=[]):
super(QAbstractTableModel, self).__init__()
@@ -215,7 +220,7 @@ class ConfigureWindow(ASubWindow, ListedSubWindow):
# Debug
def set_debug(self):
self.conf.debug = not self.conf.debug
print(f"[DEBUG] Debug mode set : {self.conf.debug}")
logger.info(f"Debug mode set : {self.conf.debug}")
self.parent.setup_debug_mode()
# Solvers