|
6 | 6 |
|
7 | 7 | from DIRAC import S_ERROR
|
8 | 8 | from DIRAC.Core.Utilities.LockRing import LockRing
|
9 |
| -from DIRAC.Core.Utilities.Decorators import deprecated |
10 | 9 | from DIRAC.FrameworkSystem.private.standardLogging.LogLevels import LogLevels, LogLevel
|
11 | 10 | from DIRAC.Resources.LogFilters.SensitiveDataFilter import SensitiveDataFilter
|
12 | 11 |
|
@@ -156,19 +155,6 @@ def _setOption(self, optionName, value, directCall=True):
|
156 | 155 | finally:
|
157 | 156 | self._lockOptions.release()
|
158 | 157 |
|
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 |
| - |
172 | 158 | def registerBackend(self, desiredBackend, backendOptions=None, backendFilters=None):
|
173 | 159 | """
|
174 | 160 | Attach a backend to the Logging object.
|
@@ -312,7 +298,6 @@ def __loadLogClass(self, modulePath):
|
312 | 298 | return objLoader.loadObject(modulePath)
|
313 | 299 | finally:
|
314 | 300 | self._lockObjectLoader.release()
|
315 |
| - return S_ERROR() |
316 | 301 |
|
317 | 302 | @staticmethod
|
318 | 303 | def getAllPossibleLevels():
|
|
0 commit comments