Skip to content

Commit

Permalink
Add which node has been registered with the same name (#1992)
Browse files Browse the repository at this point in the history
* Add which node has been registered with the same name

Was looking through logs of several nodes that had been launched at the same time and it was getting hard to tell which node was being duplicated. This would allow you do to see the name of the node that caused the issue

* switch to shutdown_node_task
  • Loading branch information
cjds authored Jul 23, 2020
1 parent 9ccdeab commit 08a2859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/rosmaster/src/rosmaster/registrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def shutdown_node_task(api, caller_id, reason):
@type reason: str
"""
try:
xmlrpcapi(api).shutdown('/master', reason)
xmlrpcapi(api).shutdown('/master', "[{}] Reason: {}".format(caller_id, reason))
except:
pass #expected in many common cases
remove_server_proxy(api)
Expand Down

0 comments on commit 08a2859

Please sign in to comment.