- now the verbose log parameter from the Preferences can take 3 values (0, 1, 2). Value = 0 means that the logging is disabled (mostly), value = 1 means that the logging is only in console and value = 3 means that the logging is now displayed in the Tcl box

This commit is contained in:
Marius Stanciu
2022-01-31 01:25:30 +02:00
committed by Marius
parent 33897e8e83
commit fa25644f8f
8 changed files with 86 additions and 58 deletions

View File

@@ -868,9 +868,13 @@ class App(QtCore.QObject):
# ############################################################################################################
# ################################### Set LOG verbosity ######################################################
# ############################################################################################################
if self.defaults["global_log_verbose"] is True:
if self.defaults["global_log_verbose"] == 2:
self.log.handlers.pop()
self.log = AppLogging(app=self)
self.log = AppLogging(app=self, log_level=2)
if self.defaults["global_log_verbose"] == 0:
self.log.handlers.pop()
self.log = AppLogging(app=self, log_level=0)
# ###########################################################################################################
# #################################### SETUP OBJECT CLASSES #################################################