Skip to content

Commit d0d7a69

Browse files
aldbrweb-flow
authored andcommitted
sweep: #6997 Fix ARCLogLevel option
1 parent f6856db commit d0d7a69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/DIRAC/Resources/Computing/ARCComputingElement.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,14 +291,14 @@ def _reset(self):
291291
# Modifying the ARCLogLevel of an ARCCE instance would impact all existing instances within a same process.
292292
logLevel = self.ceParameters.get("ARCLogLevel", "")
293293
if logLevel:
294-
arc.Logger_getRootLogger().removeDestinations()
294+
arc.Logger.getRootLogger().removeDestinations()
295295
if logLevel not in self._arcLevels:
296296
self.log.warn("ARCLogLevel input is not known:", f"{logLevel} not in {self._arcLevels}")
297297
else:
298298
logstdout = arc.LogStream(sys.stdout)
299299
logstdout.setFormat(arc.ShortFormat)
300-
arc.Logger_getRootLogger().addDestination(logstdout)
301-
arc.Logger_getRootLogger().setThreshold(getattr(arc, logLevel))
300+
arc.Logger.getRootLogger().addDestination(logstdout)
301+
arc.Logger.getRootLogger().setThreshold(getattr(arc, logLevel))
302302

303303
return S_OK()
304304

0 commit comments

Comments
 (0)