logging most communication exceptions
This commit is contained in:
parent
d61d207fb8
commit
ef2ddd16bf
6 changed files with 80 additions and 40 deletions
|
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue