add in logging to HandleConnectionError (#3185)

This commit is contained in:
Matt 2024-10-16 23:03:25 +01:00 committed by GitHub
parent 9edd5fe2da
commit d4d41bdd4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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))