Skip to content

Commit f701050

Browse files
authored
Merge pull request #6990 from aldbr/rel-v7r3_FIX_ARCLogLevel
[v7r3] Fix ARCLogLevel option
2 parents dfc870f + 3115c77 commit f701050

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
@@ -276,14 +276,14 @@ def _reset(self):
276276
# Modifying the ARCLogLevel of an ARCCE instance would impact all existing instances within a same process.
277277
logLevel = self.ceParameters.get("ARCLogLevel", "")
278278
if logLevel:
279-
arc.Logger_getRootLogger().removeDestinations()
279+
arc.Logger.getRootLogger().removeDestinations()
280280
if logLevel not in self._arcLevels:
281281
self.log.warn("ARCLogLevel input is not known:", "%s not in %s" % (logLevel, self._arcLevels))
282282
else:
283283
logstdout = arc.LogStream(sys.stdout)
284284
logstdout.setFormat(arc.ShortFormat)
285-
arc.Logger_getRootLogger().addDestination(logstdout)
286-
arc.Logger_getRootLogger().setThreshold(getattr(arc, logLevel))
285+
arc.Logger.getRootLogger().addDestination(logstdout)
286+
arc.Logger.getRootLogger().setThreshold(getattr(arc, logLevel))
287287

288288
return S_OK()
289289

0 commit comments

Comments
 (0)