[skip ci] LogTrace empty catches
MODIFY
WalletWasabi/Extensions/RPCClientExtensions.cs
WalletWasabi/Extensions/RPCClientExtensions.cs
@@ -43,8 +43,9 @@ namespace NBitcoin.RPC
{
return await rpc.EstimateSmartFeeAsync(confirmationTarget, estimateMode);
}
- catch
+ catch (Exception ex)
{
+ Logger.LogTrace<RPCClient>(ex);
// Hopefully Bitcoin Core brainfart: https://github.com/bitcoin/bitcoin/issues/14431
for (int i = 2; i <= 1008; i++)
{
@@ -52,8 +53,9 @@ namespace NBitcoin.RPC
{
return await rpc.EstimateSmartFeeAsync(i, estimateMode);
}
- catch
+ catch (Exception ex2)
{
+ Logger.LogTrace<RPCClient>(ex2);
}
}
}

MODIFY
WalletWasabi/WebClients/ExchangeRateProviders.cs
WalletWasabi/WebClients/ExchangeRateProviders.cs
@@ -9,6 +9,7 @@ using WalletWasabi.WebClients.BlockchainInfo;
using WalletWasabi.WebClients.Coinbase;
using WalletWasabi.WebClients.Gemini;
using WalletWasabi.WebClients.ItBit;
+using WalletWasabi.Logging;
namespace WalletWasabi.WebClients
{
@@ -33,9 +34,10 @@ namespace WalletWasabi.WebClients
exchangeRates = await provider.GetExchangeRateAsync();
break;
}
- catch (Exception)
+ catch (Exception ex)
{
// Ignore it and try with the next one
+ Logger.LogTrace<ExchangeRateProvider>(ex);
}
}
return exchangeRates;

[skip ci] LogTrace empty catches