mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue