From c3ab30a7435ad7e926c7d92083bfbac2d0c1b3d7 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Thu, 11 Jan 2024 15:41:54 +0100 Subject: [PATCH] [EDF29150] : logging Container python module --- src/Container/SALOME_Container.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Container/SALOME_Container.py b/src/Container/SALOME_Container.py index 0745548d6..cba5ac349 100644 --- a/src/Container/SALOME_Container.py +++ b/src/Container/SALOME_Container.py @@ -70,6 +70,7 @@ class SALOME_Container_i: # shouldn't be needed after python 3.8 # see https://bugs.python.org/issue32573 argv = [''] + logging.debug("Instanciation of {} PID = {}".format(containerName,os.getpid())) self._orb = CORBA.ORB_init(argv, CORBA.ORB_ID) self._poa = self._orb.resolve_initial_references("RootPOA") self._containerName = containerName @@ -81,6 +82,7 @@ class SALOME_Container_i: @property def logm(self): + logging.debug("Logm of {} PID = {}".format(containerName,os.getpid())) import salome if self._logm is None: salome.salome_init() @@ -153,6 +155,7 @@ class SALOME_Container_i: return 1,"".join(l) def create_pyscriptnode(self,nodeName,code): + logging.debug("create_pyscriptnode of {} PID = {}".format(nodeName,os.getpid())) try: logscript = None if getSSLMode(): @@ -169,6 +172,7 @@ class SALOME_Container_i: return 1,"".join(l) def positionVerbosityOfLogger(self): + logging.debug("positionVerbosityOfLogger PID = {}".format(os.getpid())) if VerbosityActivated(): import salome_utils salome_utils.positionVerbosityOfLoggerRegardingState() @@ -177,6 +181,7 @@ class SALOME_Container_i: return self._timeIntervalInMs def setLogFileName(self, logFileName): + logging.debug("setLogFileName {} PID = {}".format(logFileName,os.getpid())) if getSSLMode(): self._log = self.logm.declareContainer( self._containerName, logFileName ) -- 2.39.2