Skip to content

Commit

Permalink
fixed logwarn msg formatting in publishers (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpdas authored and jihoonl committed Apr 24, 2019
1 parent 13ba870 commit 2b23268
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,12 @@ def register(self, client_id, topic, msg_type=None, latch=False, queue_size=100)
queue_size=queue_size)
elif latch and self._publishers[topic].latched_client_id != client_id:
logwarn("Client ID %s attempted to register topic [%s] as latched " +
"but this topic was previously registered." % (client_id, topic))
"but this topic was previously registered.", client_id, topic)
logwarn("Only a single registered latched publisher is supported at the time")
elif not latch and self._publishers[topic].latched_client_id:
logwarn("New non-latched publisher registration for topic [%s] which is " +
"already registered as latched. but this topic was previously " +
"registered." % topic)
"registered.", topic)
logwarn("Only a single registered latched publisher is supported at the time")

if msg_type is not None:
Expand Down

0 comments on commit 2b23268

Please sign in to comment.