Skip to content

Commit

Permalink
Simplified internal loggers
Browse files Browse the repository at this point in the history
This allows using args and kwargs as in the python logging module
  • Loading branch information
mgrrx committed Jan 1, 2018
1 parent bc33f0c commit 907206f
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions clients/rospy/src/rospy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,18 +131,10 @@ def parse_rosrpc_uri(uri):
# other sorts of information that scare users but are essential for
# debugging

def rospydebug(msg, *args):
"""Internal rospy client library debug logging"""
_rospy_logger.debug(msg, *args)
def rospyinfo(msg, *args):
"""Internal rospy client library debug logging"""
_rospy_logger.info(msg, *args)
def rospyerr(msg, *args):
"""Internal rospy client library error logging"""
_rospy_logger.error(msg, *args)
def rospywarn(msg, *args):
"""Internal rospy client library warn logging"""
_rospy_logger.warn(msg, *args)
rospydebug = _rospy_logger.debug
rospyinfo = _rospy_logger.info
rospyerr = _rospy_logger.error
rospywarn = _rospy_logger.warn


def _base_logger(msg, *args, **kwargs):
Expand Down

0 comments on commit 907206f

Please sign in to comment.