|
|
|
@ -855,6 +855,20 @@ def Orchestrator(inGSettings):
|
|
|
|
|
inGSettings["VersionStr"] = __version__
|
|
|
|
|
#Logger alias
|
|
|
|
|
lL = gSettingsDict["Logger"]
|
|
|
|
|
# Init the log dump to WEB
|
|
|
|
|
#import pdb; pdb.set_trace()
|
|
|
|
|
############################################
|
|
|
|
|
if len(lL.handlers)== 0:
|
|
|
|
|
mRobotLoggerFormatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')
|
|
|
|
|
else:
|
|
|
|
|
mRobotLoggerFormatter = lL.handlers[0].formatter
|
|
|
|
|
mHandlerDumpLogList = LoggerHandlerDumpLogList.LoggerHandlerDumpLogList(inDict=inGSettings["Client"],
|
|
|
|
|
inKeyStr="DumpLogList",
|
|
|
|
|
inHashKeyStr="DumpLogListHashStr",
|
|
|
|
|
inRowCountInt=inGSettings["Client"]["DumpLogListCountInt"])
|
|
|
|
|
mHandlerDumpLogList.setFormatter(mRobotLoggerFormatter)
|
|
|
|
|
lL.addHandler(mHandlerDumpLogList)
|
|
|
|
|
|
|
|
|
|
if lL: lL.info("Link the gSettings in submodules") #Logging
|
|
|
|
|
Processor.gSettingsDict = gSettingsDict
|
|
|
|
|
Timer.gSettingsDict = gSettingsDict
|
|
|
|
@ -894,20 +908,6 @@ def Orchestrator(inGSettings):
|
|
|
|
|
# Turn on backward compatibility
|
|
|
|
|
BackwardCompatibility.Update(inGSettings= gSettingsDict)
|
|
|
|
|
|
|
|
|
|
# Init the log dump to WEB
|
|
|
|
|
#import pdb; pdb.set_trace()
|
|
|
|
|
############################################
|
|
|
|
|
if len(lL.handlers)== 0:
|
|
|
|
|
mRobotLoggerFormatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')
|
|
|
|
|
else:
|
|
|
|
|
mRobotLoggerFormatter = lL.handlers[0].formatter
|
|
|
|
|
mHandlerDumpLogList = LoggerHandlerDumpLogList.LoggerHandlerDumpLogList(inDict=inGSettings["Client"],
|
|
|
|
|
inKeyStr="DumpLogList",
|
|
|
|
|
inHashKeyStr="DumpLogListHashStr",
|
|
|
|
|
inRowCountInt=inGSettings["Client"]["DumpLogListCountInt"])
|
|
|
|
|
mHandlerDumpLogList.setFormatter(mRobotLoggerFormatter)
|
|
|
|
|
lL.addHandler(mHandlerDumpLogList)
|
|
|
|
|
|
|
|
|
|
# Append Orchestrator def to ProcessorDictAlias
|
|
|
|
|
lModule = sys.modules[__name__]
|
|
|
|
|
lModuleDefList = dir(lModule)
|
|
|
|
|