Skip to content

Commit

Permalink
Exposed logger_name
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrrx committed Jan 1, 2018
1 parent 23188ed commit c924c96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clients/rospy/src/rospy/core.py
Expand Up @@ -145,12 +145,14 @@ def rospywarn(msg, *args):
_rospy_logger.warn(msg, *args)


def _base_logger(msg, args, kwargs, name=None, throttle=None,
def _base_logger(msg, args, kwargs, throttle=None,
level=None, once=False):

rospy_logger = logging.getLogger('rosout')
name = kwargs.get('logger_name')
if name:
rospy_logger = rospy_logger.getChild(name)
del kwargs['logger_name']
logfunc = getattr(rospy_logger, level)

if once:
Expand Down

0 comments on commit c924c96

Please sign in to comment.