From f5aadf391877a9d6acf0019c46c84333abf6d59c Mon Sep 17 00:00:00 2001
From: hackrush <atulshyan96@gmail.com>
Date: Wed, 7 Mar 2018 21:51:11 +0530
Subject: [PATCH] Sanitized logged error for channel and name claims

---
 lbrynet/core/Wallet.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lbrynet/core/Wallet.py b/lbrynet/core/Wallet.py
index 9a9b183f1..0eb25f318 100644
--- a/lbrynet/core/Wallet.py
+++ b/lbrynet/core/Wallet.py
@@ -503,8 +503,8 @@ class Wallet(object):
         log.info("Preparing to make certificate claim for %s", channel_name)
         channel_claim = yield self._claim_certificate(parsed_channel_name.name, amount)
         if not channel_claim['success']:
-            log.error(channel_claim)
-            msg = 'Claim to name {} failed: {}'.format(channel_name, channel_claim['reason'])
+            msg = 'Claiming of {} failed: {}'.format(channel_name, channel_claim['reason'])
+            log.error(msg)
             raise Exception(msg)
         yield self.save_claim(self._get_temp_claim_info(channel_claim, channel_name, amount))
         defer.returnValue(channel_claim)
@@ -563,8 +563,8 @@ class Wallet(object):
                                             bid, certificate_id, claim_address, change_address)
 
         if not claim['success']:
-            log.error(claim)
-            msg = 'Claim to name {} failed: {}'.format(name, claim['reason'])
+            msg = 'Claiming of name {} failed: {}'.format(name, claim['reason'])
+            log.error(msg)
             raise Exception(msg)
         claim = self._process_claim_out(claim)
         yield self.storage.save_claim(self._get_temp_claim_info(claim, name, bid), smart_decode(claim['value']))