add in logging to HandleConnectionError

This commit is contained in:
bluepilledgreat 2024-10-16 18:49:13 +01:00
parent 9edd5fe2da
commit 04d809012c

View File

@ -116,8 +116,13 @@ namespace Bloxstrap
private void HandleConnectionError(Exception exception) private void HandleConnectionError(Exception exception)
{ {
const string LOG_IDENT = "Bootstrapper::HandleConnectionError";
_noConnection = true; _noConnection = true;
App.Logger.WriteLine(LOG_IDENT, "Connectivity check failed");
App.Logger.WriteException(LOG_IDENT, exception);
string message = Strings.Dialog_Connectivity_Preventing; string message = Strings.Dialog_Connectivity_Preventing;
if (exception.GetType() == typeof(AggregateException)) if (exception.GetType() == typeof(AggregateException))