|
|
@ -1,9 +1,10 @@
|
|
|
|
import subprocess, json, psutil, time, os, win32security, sys, base64 #Get input argument
|
|
|
|
import subprocess, json, psutil, time, os, win32security, sys, base64, logging #Get input argument
|
|
|
|
from . import Server
|
|
|
|
from . import Server
|
|
|
|
from . import Timer
|
|
|
|
from . import Timer
|
|
|
|
from . import Processor
|
|
|
|
from . import Processor
|
|
|
|
from . import BackwardCompatibility # Backward compatibility from v1.1.13
|
|
|
|
from . import BackwardCompatibility # Backward compatibility from v1.1.13
|
|
|
|
from . import Core
|
|
|
|
from . import Core
|
|
|
|
|
|
|
|
from .Utils import LoggerHandlerDumpLogList
|
|
|
|
|
|
|
|
|
|
|
|
# ATTENTION! HERE IS NO Relative import because it will be imported dynamically
|
|
|
|
# ATTENTION! HERE IS NO Relative import because it will be imported dynamically
|
|
|
|
# All function check the flag SessionIsWindowResponsibleBool == True else no cammand is processed
|
|
|
|
# All function check the flag SessionIsWindowResponsibleBool == True else no cammand is processed
|
|
|
@ -844,6 +845,20 @@ def Orchestrator(inGSettings):
|
|
|
|
# Turn on backward compatibility
|
|
|
|
# Turn on backward compatibility
|
|
|
|
BackwardCompatibility.Update(inGSettings= gSettingsDict)
|
|
|
|
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
|
|
|
|
# Append Orchestrator def to ProcessorDictAlias
|
|
|
|
lModule = sys.modules[__name__]
|
|
|
|
lModule = sys.modules[__name__]
|
|
|
|
lModuleDefList = dir(lModule)
|
|
|
|
lModuleDefList = dir(lModule)
|
|
|
|