mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
more better exception handling.
This commit is contained in:
parent
2e174c03c9
commit
6af98f9e96
4 changed files with 37 additions and 21 deletions
|
@ -13,9 +13,11 @@ namespace NzbDrone.Core.Instrumentation
|
|||
{
|
||||
if (logEvent == null || logEvent.Exception == null) return;
|
||||
if (Debugger.IsAttached || Process.GetCurrentProcess().ProcessName.Contains("JetBrains")) return;
|
||||
|
||||
|
||||
Logger.Trace("Sending Exception to Exceptioneer. {0}", Process.GetCurrentProcess().ProcessName);
|
||||
|
||||
logEvent.Exception.Data.Add("Message", logEvent.Message);
|
||||
|
||||
new Client
|
||||
{
|
||||
ApiKey = "43BBF60A-EB2A-4C1C-B09E-422ADF637265",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue