Skip to content

Commit b6b24d1

Browse files
committed
fix: deprecated gLogger.registerBackends() method
1 parent efa053e commit b6b24d1

File tree

1 file changed

+0
-15
lines changed
  • src/DIRAC/FrameworkSystem/private/standardLogging

1 file changed

+0
-15
lines changed

src/DIRAC/FrameworkSystem/private/standardLogging/Logging.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
from DIRAC import S_ERROR
88
from DIRAC.Core.Utilities.LockRing import LockRing
9-
from DIRAC.Core.Utilities.Decorators import deprecated
109
from DIRAC.FrameworkSystem.private.standardLogging.LogLevels import LogLevels, LogLevel
1110
from DIRAC.Resources.LogFilters.SensitiveDataFilter import SensitiveDataFilter
1211

@@ -156,19 +155,6 @@ def _setOption(self, optionName, value, directCall=True):
156155
finally:
157156
self._lockOptions.release()
158157

159-
@deprecated("Use registerBackend() instead")
160-
def registerBackends(self, desiredBackends, backendOptions=None):
161-
"""
162-
Attach a list of backends to the Logging object.
163-
Convert backend names to backend class names to Backend objects and add them to the Logging object
164-
165-
:param desiredBackends: list of different names attaching to differents backends.
166-
list of the possible values: ['stdout', 'stderr', 'file']
167-
:param backendOptions: dictionary of different backend options. Example: FileName='/tmp/log.txt'
168-
"""
169-
for backendName in desiredBackends:
170-
self.registerBackend(backendName, backendOptions)
171-
172158
def registerBackend(self, desiredBackend, backendOptions=None, backendFilters=None):
173159
"""
174160
Attach a backend to the Logging object.
@@ -312,7 +298,6 @@ def __loadLogClass(self, modulePath):
312298
return objLoader.loadObject(modulePath)
313299
finally:
314300
self._lockObjectLoader.release()
315-
return S_ERROR()
316301

317302
@staticmethod
318303
def getAllPossibleLevels():

0 commit comments

Comments
 (0)