diff --git a/clients/rospy/src/rospy/impl/rosout.py b/clients/rospy/src/rospy/impl/rosout.py index 4514031809..a1ce4d84c6 100644 --- a/clients/rospy/src/rospy/impl/rosout.py +++ b/clients/rospy/src/rospy/impl/rosout.py @@ -121,7 +121,7 @@ def _rosout(level, msg, fname, line, func): class RosOutHandler(logging.Handler): def emit(self, record): - _rosout(_logging_to_rospy_levels[record.levelno], record.getMessage(), + _rosout(_logging_to_rospy_levels[record.levelno], self.format(record), record.filename, record.lineno, record.funcName) ## Load loggers for publishing to /rosout