1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-26 17:59:14 +00:00

All exception levels are now reported.

This commit is contained in:
kay.one 2012-01-16 23:55:55 -08:00
parent 6a9321b22d
commit 1301dc1b7b
2 changed files with 2 additions and 3 deletions

View file

@ -11,8 +11,7 @@ public class ExceptioneerTarget : Target
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);

View file

@ -97,7 +97,7 @@ public static void RegisterExceptioneer()
{
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();
}