added more info to decision engine exception reporting.

This commit is contained in:
Keivan Beigi 2013-05-28 17:15:42 -07:00
commit 4e06cf0fa6
5 changed files with 8 additions and 41 deletions

View file

@ -56,6 +56,11 @@ namespace NzbDrone.Common.Instrumentation
dictionary.Add("ex", logEvent.Exception.ToString());
dictionary.Add("extyp", logEvent.Exception.GetType().Name);
dictionary.Add("hash", logEvent.GetHash());
foreach (var key in logEvent.Exception.Data.Keys)
{
dictionary.Add(key.ToString(), logEvent.Exception.Data[key]);
}
}
dictionary.Add("logger", logEvent.LoggerName);