Better log emissions for running a local Ursula.

pull/638/head
jMyles 2018-12-19 19:56:07 -05:00 committed by Kieran Prasch
parent 453af8db36
commit e3810bcfa8
No known key found for this signature in database
GPG Key ID: 199AB839D4125A62
2 changed files with 2 additions and 3 deletions

View File

@ -591,7 +591,7 @@ class Ursula(Teacher, Character, Miner):
#
if is_me:
self.known_nodes.record_fleet_state(additional_nodes_to_track=[self])
message = "Initialized Self {} | {}".format(self.__class__.__name__, self.checksum_public_address)
message = "THIS IS YOU: {}: {}".format(self.__class__.__name__, self)
self.log.info(message)
else:
message = "Initialized Stranger {} | {}".format(self.__class__.__name__, self)

View File

@ -386,7 +386,6 @@ Delete {}?'''.format(ursula_config.config_root), abort=True)
# Produce - Step 2
#
ursula = ursula_config(known_nodes=teacher_nodes)
ursula_config.log.debug("Initialized Ursula {}".format(ursula), fg='green')
# GO!
try:
@ -394,7 +393,7 @@ Delete {}?'''.format(ursula_config.config_root), abort=True)
#
# Run - Step 3
#
click.secho("Running Ursula on {}".format(ursula.rest_interface), fg='green', bold=True)
click.secho("Running Ursula {} on {}".format(ursula, ursula.rest_interface), fg='green', bold=True)
if not debug:
stdio.StandardIO(UrsulaCommandProtocol(ursula=ursula))