Skip to content

Commit 3bcd474

Browse files
authored
Merge pull request #7000 from DIRACGridBot/cherry-pick-2-8d4aa509e-integration
[sweep:integration] Fix ARCLogLevel option
2 parents f6856db + d0d7a69 commit 3bcd474

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)