- 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

@@ -84,7 +84,7 @@ class FlatCAMDefaults:
"global_graphic_engine": '3D',
"global_app_level": 'b',
"global_log_verbose": True,
"global_log_verbose": 2,
"global_portable": False,
"global_languages": ['English', 'Romanian'],
@@ -1001,7 +1001,7 @@ class FlatCAMDefaults:
an alternative to project options but allows the use
of values invisible to the user.
"""
log.debug("propagate_defaults()")
# log.debug("propagate_defaults()")
# Which objects to update the given parameters.
routes = {
@@ -1020,7 +1020,8 @@ class FlatCAMDefaults:
try:
routes[param].defaults[param] = self.defaults[param]
except KeyError:
log.error("FlatCAMApp.propagate_defaults() --> ERROR: " + param + " not in defaults.")
# log.error("FlatCAMApp.propagate_defaults() --> ERROR: " + param + " not in defaults.")
pass
else:
# Try extracting the name:
# classname_param here is param in the object