mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
Drop 'fn' arguments to bb.msg functions
(Bitbake rev: 8341458e3d21b45db84e46bd32f8ad270000ce3c) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
55c0b36e36
commit
fc27334d1a
@@ -109,7 +109,7 @@ def set_debug_domains(domainargs):
|
|||||||
# Message handling functions
|
# Message handling functions
|
||||||
#
|
#
|
||||||
|
|
||||||
def debug(level, msgdomain, msg, fn = None):
|
def debug(level, msgdomain, msg):
|
||||||
warnings.warn("bb.msg.debug will soon be deprecated in favor of the python 'logging' module",
|
warnings.warn("bb.msg.debug will soon be deprecated in favor of the python 'logging' module",
|
||||||
PendingDeprecationWarning, stacklevel=2)
|
PendingDeprecationWarning, stacklevel=2)
|
||||||
level = logging.DEBUG - (level - 1)
|
level = logging.DEBUG - (level - 1)
|
||||||
@@ -118,12 +118,12 @@ def debug(level, msgdomain, msg, fn = None):
|
|||||||
else:
|
else:
|
||||||
loggers[msgdomain].debug(level, msg)
|
loggers[msgdomain].debug(level, msg)
|
||||||
|
|
||||||
def plain(msg, fn = None):
|
def plain(msg):
|
||||||
warnings.warn("bb.msg.plain will soon be deprecated in favor of the python 'logging' module",
|
warnings.warn("bb.msg.plain will soon be deprecated in favor of the python 'logging' module",
|
||||||
PendingDeprecationWarning, stacklevel=2)
|
PendingDeprecationWarning, stacklevel=2)
|
||||||
logger.plain(msg)
|
logger.plain(msg)
|
||||||
|
|
||||||
def note(level, msgdomain, msg, fn = None):
|
def note(level, msgdomain, msg):
|
||||||
warnings.warn("bb.msg.note will soon be deprecated in favor of the python 'logging' module",
|
warnings.warn("bb.msg.note will soon be deprecated in favor of the python 'logging' module",
|
||||||
PendingDeprecationWarning, stacklevel=2)
|
PendingDeprecationWarning, stacklevel=2)
|
||||||
if level > 1:
|
if level > 1:
|
||||||
@@ -136,8 +136,8 @@ def note(level, msgdomain, msg, fn = None):
|
|||||||
logger.info(msg)
|
logger.info(msg)
|
||||||
else:
|
else:
|
||||||
loggers[msgdomain].info(msg)
|
loggers[msgdomain].info(msg)
|
||||||
|
|
||||||
def warn(msgdomain, msg, fn = None):
|
def warn(msgdomain, msg):
|
||||||
warnings.warn("bb.msg.warn will soon be deprecated in favor of the python 'logging' module",
|
warnings.warn("bb.msg.warn will soon be deprecated in favor of the python 'logging' module",
|
||||||
PendingDeprecationWarning, stacklevel=2)
|
PendingDeprecationWarning, stacklevel=2)
|
||||||
if not msgdomain:
|
if not msgdomain:
|
||||||
@@ -145,7 +145,7 @@ def warn(msgdomain, msg, fn = None):
|
|||||||
else:
|
else:
|
||||||
loggers[msgdomain].warn(msg)
|
loggers[msgdomain].warn(msg)
|
||||||
|
|
||||||
def error(msgdomain, msg, fn = None):
|
def error(msgdomain, msg):
|
||||||
warnings.warn("bb.msg.error will soon be deprecated in favor of the python 'logging' module",
|
warnings.warn("bb.msg.error will soon be deprecated in favor of the python 'logging' module",
|
||||||
PendingDeprecationWarning, stacklevel=2)
|
PendingDeprecationWarning, stacklevel=2)
|
||||||
if not msgdomain:
|
if not msgdomain:
|
||||||
@@ -153,7 +153,7 @@ def error(msgdomain, msg, fn = None):
|
|||||||
else:
|
else:
|
||||||
loggers[msgdomain].error(msg)
|
loggers[msgdomain].error(msg)
|
||||||
|
|
||||||
def fatal(msgdomain, msg, fn = None):
|
def fatal(msgdomain, msg):
|
||||||
warnings.warn("bb.msg.fatal will soon be deprecated in favor of raising appropriate exceptions",
|
warnings.warn("bb.msg.fatal will soon be deprecated in favor of raising appropriate exceptions",
|
||||||
PendingDeprecationWarning, stacklevel=2)
|
PendingDeprecationWarning, stacklevel=2)
|
||||||
if not msgdomain:
|
if not msgdomain:
|
||||||
|
|||||||
Reference in New Issue
Block a user