Skip to content

Commit

Permalink
Remove deprecated f-string log APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
Fireye04 committed Feb 3, 2023
1 parent f2449ed commit 61f610a
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions python/lsst/log/log/logContinued.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import os

from typing import Optional
from deprecated.sphinx import deprecated

from lsst.utils import continueClass

Expand Down Expand Up @@ -132,42 +131,6 @@ def critical(self, fmt, *args):
# line number in the log.
self._log(Log.FATAL, False, fmt, *args)

@deprecated(reason="f-string log messages are now deprecated to match python logging convention."
" Will be removed after v25",
version="v23.0", category=FutureWarning)
def tracef(self, fmt, *args, **kwargs):
self._log(Log.TRACE, True, fmt, *args, **kwargs)

@deprecated(reason="f-string log messages are now deprecated to match python logging convention."
" Will be removed after v25",
version="v23.0", category=FutureWarning)
def debugf(self, fmt, *args, **kwargs):
self._log(Log.DEBUG, True, fmt, *args, **kwargs)

@deprecated(reason="f-string log messages are now deprecated to match python logging convention."
" Will be removed after v25",
version="v23.0", category=FutureWarning)
def infof(self, fmt, *args, **kwargs):
self._log(Log.INFO, True, fmt, *args, **kwargs)

@deprecated(reason="f-string log messages are now deprecated to match python logging convention."
" Will be removed after v25",
version="v23.0", category=FutureWarning)
def warnf(self, fmt, *args, **kwargs):
self._log(Log.WARN, True, fmt, *args, **kwargs)

@deprecated(reason="f-string log messages are now deprecated to match python logging convention."
" Will be removed after v25",
version="v23.0", category=FutureWarning)
def errorf(self, fmt, *args, **kwargs):
self._log(Log.ERROR, True, fmt, *args, **kwargs)

@deprecated(reason="f-string log messages are now deprecated to match python logging convention."
" Will be removed after v25",
version="v23.0", category=FutureWarning)
def fatalf(self, fmt, *args, **kwargs):
self._log(Log.FATAL, True, fmt, *args, **kwargs)

def _log(self, level, use_format, fmt, *args, **kwargs):
if self.isEnabledFor(level):
frame = inspect.currentframe().f_back # calling method
Expand Down

0 comments on commit 61f610a

Please sign in to comment.