public override async Task Execute() { try { await _periodicalService.UpdateBalances(); } catch (Exception ex) { await _log.WriteErrorAsync(nameof(BalanceHandler), nameof(Execute), "Failed to update balances", ex); } }
public override async Task Execute() { try { await _periodicalService.UpdateBalances(); } catch (Exception ex) { if (_disableErrorsSending == true) { _log.Debug("Failed to update balances", exception: ex); } else { _log.Error(ex, "Failed to update balances"); } } }