logging most communication exceptions

This commit is contained in:
Michele 2020-12-13 22:27:51 +00:00
parent d61d207fb8
commit ef2ddd16bf
6 changed files with 80 additions and 40 deletions

View file

@ -1,3 +1,5 @@
using System;
using Exceptionless;
using Microsoft.Xna.Framework;
namespace Sledgemapper
@ -8,13 +10,24 @@ namespace Sledgemapper
public Color OverlayTintColor { get; set; }
public Color GridColor { get; set; }
public Color NoteColor { get; set; }
public string MachineName { get; set; }
public Settings()
{
BackgroundColor=Color.LightGray;
GridColor=Color.Black;
NoteColor=Color.DarkRed;
BackgroundColor = Color.LightGray;
GridColor = Color.Black;
NoteColor = Color.DarkRed;
OverlayTintColor = new Color(24, 118, 157);
try
{
MachineName = Environment.MachineName;
}
catch (Exception ex)
{
ExceptionlessClient.Default.SubmitException(ex);
MachineName = "n/a";
}
}
}
}