forked from LBRYCommunity/lbry-sdk
Sanitized logged error for channel and name claims
This commit is contained in:
parent
6d4af4ba90
commit
f5aadf3918
1 changed files with 4 additions and 4 deletions
|
@ -503,8 +503,8 @@ class Wallet(object):
|
||||||
log.info("Preparing to make certificate claim for %s", channel_name)
|
log.info("Preparing to make certificate claim for %s", channel_name)
|
||||||
channel_claim = yield self._claim_certificate(parsed_channel_name.name, amount)
|
channel_claim = yield self._claim_certificate(parsed_channel_name.name, amount)
|
||||||
if not channel_claim['success']:
|
if not channel_claim['success']:
|
||||||
log.error(channel_claim)
|
msg = 'Claiming of {} failed: {}'.format(channel_name, channel_claim['reason'])
|
||||||
msg = 'Claim to name {} failed: {}'.format(channel_name, channel_claim['reason'])
|
log.error(msg)
|
||||||
raise Exception(msg)
|
raise Exception(msg)
|
||||||
yield self.save_claim(self._get_temp_claim_info(channel_claim, channel_name, amount))
|
yield self.save_claim(self._get_temp_claim_info(channel_claim, channel_name, amount))
|
||||||
defer.returnValue(channel_claim)
|
defer.returnValue(channel_claim)
|
||||||
|
@ -563,8 +563,8 @@ class Wallet(object):
|
||||||
bid, certificate_id, claim_address, change_address)
|
bid, certificate_id, claim_address, change_address)
|
||||||
|
|
||||||
if not claim['success']:
|
if not claim['success']:
|
||||||
log.error(claim)
|
msg = 'Claiming of name {} failed: {}'.format(name, claim['reason'])
|
||||||
msg = 'Claim to name {} failed: {}'.format(name, claim['reason'])
|
log.error(msg)
|
||||||
raise Exception(msg)
|
raise Exception(msg)
|
||||||
claim = self._process_claim_out(claim)
|
claim = self._process_claim_out(claim)
|
||||||
yield self.storage.save_claim(self._get_temp_claim_info(claim, name, bid), smart_decode(claim['value']))
|
yield self.storage.save_claim(self._get_temp_claim_info(claim, name, bid), smart_decode(claim['value']))
|
||||||
|
|
Loading…
Add table
Reference in a new issue