add channel_new logging, fix docstring

This commit is contained in:
Jack Robison 2017-04-10 11:01:28 -04:00
parent 66ab1386c5
commit a43127fffc
2 changed files with 3 additions and 1 deletions

View file

@ -643,6 +643,7 @@ class Wallet(object):
elif (parsed_channel_name.path or parsed_channel_name.claim_id or elif (parsed_channel_name.path or parsed_channel_name.claim_id or
parsed_channel_name.bid_position or parsed_channel_name.claim_sequence): parsed_channel_name.bid_position or parsed_channel_name.claim_sequence):
raise Exception("New channel claim should have no fields other than name") raise Exception("New channel claim should have no fields other than name")
log.info("Preparing to make certificate claim for %s", channel_name)
return self._claim_certificate(parsed_channel_name.name, amount) return self._claim_certificate(parsed_channel_name.name, amount)
@defer.inlineCallbacks @defer.inlineCallbacks

View file

@ -1642,7 +1642,7 @@ class Daemon(AuthJSONRPCServer):
Generate a publisher key and create a new certificate claim Generate a publisher key and create a new certificate claim
Args: Args:
'name': (str) '@' prefixed name 'channel_name': (str) '@' prefixed name
'amount': (float) amount to claim name 'amount': (float) amount to claim name
Returns: Returns:
@ -1657,6 +1657,7 @@ class Daemon(AuthJSONRPCServer):
""" """
result = yield self.session.wallet.claim_new_channel(channel_name, amount) result = yield self.session.wallet.claim_new_channel(channel_name, amount)
log.info("Claimed a new channel! Result: %s", result)
response = yield self._render_response(result) response = yield self._render_response(result)
defer.returnValue(response) defer.returnValue(response)