Moved PathLog to Path.Log and import it by default

This commit is contained in:
Markus Lampert
2022-08-09 20:06:40 -07:00
parent 7e643c563b
commit 233c92b79e
128 changed files with 1738 additions and 1801 deletions

View File

@@ -20,16 +20,16 @@
# * *
# ***************************************************************************
import PathScripts.PathLog as PathLog
import Path
import subprocess
LOGLEVEL = False
if LOGLEVEL:
PathLog.setLevel(PathLog.Level.DEBUG, PathLog.thisModule())
PathLog.trackModule(PathLog.thisModule())
Path.Log.setLevel(Path.Log.Level.DEBUG, Path.Log.thisModule())
Path.Log.trackModule(Path.Log.thisModule())
else:
PathLog.setLevel(PathLog.Level.INFO, PathLog.thisModule())
Path.Log.setLevel(Path.Log.Level.INFO, Path.Log.thisModule())
Processed = False
@@ -37,7 +37,7 @@ Processed = False
def Startup():
global Processed
if not Processed:
PathLog.debug("Initializing PathGui")
Path.Log.debug("Initializing PathGui")
from PathScripts import PathAdaptiveGui
from PathScripts import PathArray
from PathScripts import PathComment
@@ -98,4 +98,4 @@ def Startup():
Processed = True
else:
PathLog.debug("Skipping PathGui initialisation")
Path.Log.debug("Skipping PathGui initialisation")