Skip to content

Commit

Permalink
changed logrow
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Setteskog committed Jun 1, 2021
1 parent a5928fe commit ce0a2b0
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,15 @@ private void StopRecoveryLoop()
}
}

private static void HandleTopologyRecoveryException(TopologyRecoveryException e)
private void HandleTopologyRecoveryException(TopologyRecoveryException e)
{
ESLog.Error("Topology recovery exception", e);

if (e.InnerException is AlreadyClosedException || e.InnerException is OperationInterruptedException || e.InnerException is TimeoutException)
{
throw e;
}
ESLog.Info($"Exception {e.InnerException?.GetType().FullName} is ignored because of it's not a known connection problem.", e);

ESLog.Error($"Will not throw Topology Exception {e.InnerException?.GetType().FullName}.", e);
}

private bool TryPerformAutomaticRecovery()
Expand Down

0 comments on commit ce0a2b0

Please sign in to comment.