mirror of https://github.com/lidarr/Lidarr
Fixed Exceptioneer.
This commit is contained in:
parent
1ff34c8e38
commit
87cf08a365
|
@ -23,8 +23,8 @@ namespace NzbDrone.Core.Instrumentation
|
||||||
|
|
||||||
public static void StartDbLogging()
|
public static void StartDbLogging()
|
||||||
{
|
{
|
||||||
|
#if DEBUG
|
||||||
#if RELEASE
|
#else
|
||||||
var exTarget = new ExceptioneerTarget();
|
var exTarget = new ExceptioneerTarget();
|
||||||
LogManager.Configuration.AddTarget("Exceptioneer", exTarget);
|
LogManager.Configuration.AddTarget("Exceptioneer", exTarget);
|
||||||
LogManager.Configuration.LoggingRules.Add(new LoggingRule("*", NLog.LogLevel.Error, exTarget));
|
LogManager.Configuration.LoggingRules.Add(new LoggingRule("*", NLog.LogLevel.Error, exTarget));
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Runtime.Remoting;
|
using System.Runtime.Remoting;
|
||||||
using System.Timers;
|
using System.Timers;
|
||||||
|
using Exceptioneer.WindowsFormsClient;
|
||||||
using NLog;
|
using NLog;
|
||||||
using Ninject;
|
using Ninject;
|
||||||
|
|
||||||
|
@ -106,7 +107,8 @@ namespace NzbDrone.Providers
|
||||||
Console.WriteLine("EPIC FAIL: {0}", excepion);
|
Console.WriteLine("EPIC FAIL: {0}", excepion);
|
||||||
Logger.Fatal("EPIC FAIL: {0}", excepion);
|
Logger.Fatal("EPIC FAIL: {0}", excepion);
|
||||||
|
|
||||||
#if RELEASE
|
#if DEBUG
|
||||||
|
#else
|
||||||
new Client
|
new Client
|
||||||
{
|
{
|
||||||
ApiKey = "43BBF60A-EB2A-4C1C-B09E-422ADF637265",
|
ApiKey = "43BBF60A-EB2A-4C1C-B09E-422ADF637265",
|
||||||
|
|
Loading…
Reference in New Issue