mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Fixed Exceptioneer, Launcher should run as priority normal
This commit is contained in:
parent
c753b315d8
commit
badcfecb93
5 changed files with 19 additions and 18 deletions
|
@ -8,15 +8,14 @@ namespace NzbDrone.Core.Instrumentation
|
|||
{
|
||||
public class ExceptioneerTarget : Target
|
||||
{
|
||||
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
protected override void Write(LogEventInfo logEvent)
|
||||
{
|
||||
if (logEvent.Exception == null)
|
||||
throw new InvalidOperationException(
|
||||
@"Missing Exception Object.. Please Use Logger.FatalException() or Logger.ErrorException() rather
|
||||
than Logger.Fatal() and Logger.Error()");
|
||||
|
||||
if (!Debugger.IsAttached)
|
||||
{
|
||||
Logger.Trace("Sending Exception to Exceptioneer");
|
||||
|
||||
new Client
|
||||
{
|
||||
ApiKey = "43BBF60A-EB2A-4C1C-B09E-422ADF637265",
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace NzbDrone.Core.Instrumentation
|
|||
public static void StartDbLogging()
|
||||
{
|
||||
|
||||
#if Release
|
||||
#if RELEASE
|
||||
var exTarget = new ExceptioneerTarget();
|
||||
LogManager.Configuration.AddTarget("Exceptioneer", exTarget);
|
||||
LogManager.Configuration.LoggingRules.Add(new LoggingRule("*", NLog.LogLevel.Error, exTarget));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue