From 1301dc1b7bff2f794d15d892da41c969302257d6 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Mon, 16 Jan 2012 23:55:55 -0800 Subject: [PATCH] All exception levels are now reported. --- NzbDrone.Common/ExceptioneerTarget.cs | 3 +-- NzbDrone.Common/LogConfiguration.cs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/NzbDrone.Common/ExceptioneerTarget.cs b/NzbDrone.Common/ExceptioneerTarget.cs index 51883b907..6b70acbd4 100644 --- a/NzbDrone.Common/ExceptioneerTarget.cs +++ b/NzbDrone.Common/ExceptioneerTarget.cs @@ -11,8 +11,7 @@ namespace NzbDrone.Common protected override void Write(LogEventInfo logEvent) { - if (logEvent == null || logEvent.Exception == null) return; - if (Debugger.IsAttached || Process.GetCurrentProcess().ProcessName.Contains("JetBrains")) return; + if (logEvent == null || logEvent.Exception == null || !EnviromentProvider.IsProduction) return; Logger.Trace("Sending Exception to Exceptioneer. Process Name: {0}", Process.GetCurrentProcess().ProcessName); diff --git a/NzbDrone.Common/LogConfiguration.cs b/NzbDrone.Common/LogConfiguration.cs index 1770cfe70..84a1e9e51 100644 --- a/NzbDrone.Common/LogConfiguration.cs +++ b/NzbDrone.Common/LogConfiguration.cs @@ -97,7 +97,7 @@ namespace NzbDrone.Common { var exTarget = new ExceptioneerTarget(); LogManager.Configuration.AddTarget("Exceptioneer", exTarget); - LogManager.Configuration.LoggingRules.Add(new LoggingRule("*", LogLevel.Error, exTarget)); + LogManager.Configuration.LoggingRules.Add(new LoggingRule("*", LogLevel.Trace, exTarget)); LogManager.ConfigurationReloaded += (sender, args) => RegisterExceptioneer(); }