From 4e49ceb64048bc3b60c3f69157d61243d5a61528 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Fri, 24 Feb 2012 00:18:57 -0800 Subject: [PATCH] Temporally disabled exceptioneer. Fixed: Increased log file size to 1MB from 400K. --- NzbDrone.Common/LogConfiguration.cs | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/NzbDrone.Common/LogConfiguration.cs b/NzbDrone.Common/LogConfiguration.cs index 1b695dc97..d45caf20a 100644 --- a/NzbDrone.Common/LogConfiguration.cs +++ b/NzbDrone.Common/LogConfiguration.cs @@ -1,5 +1,4 @@ using System; -using System.IO; using NLog; using NLog.Config; using NLog.Targets; @@ -104,7 +103,7 @@ namespace NzbDrone.Common { var fileTarget = GetBaseTarget(); fileTarget.FileName = fileName; - fileTarget.ArchiveAboveSize = 200000; //500K + fileTarget.ArchiveAboveSize = 512000; //500K x 2 fileTarget.MaxArchiveFiles = 1; fileTarget.EnableFileDelete = true; fileTarget.ArchiveNumbering = ArchiveNumberingMode.Rolling; @@ -115,19 +114,19 @@ namespace NzbDrone.Common public static void RegisterRemote() { - if (EnviromentProvider.IsProduction) - { - try - { - var exceptioneerTarget = new ExceptioneerTarget(); - LogManager.Configuration.AddTarget("Exceptioneer", exceptioneerTarget); - LogManager.Configuration.LoggingRules.Add(new LoggingRule("*", LogLevel.Trace, exceptioneerTarget)); - } - catch (Exception e) - { - Console.WriteLine(e); - } - } + //if (EnviromentProvider.IsProduction) + //{ + // try + // { + // var exceptioneerTarget = new ExceptioneerTarget(); + // LogManager.Configuration.AddTarget("Exceptioneer", exceptioneerTarget); + // LogManager.Configuration.LoggingRules.Add(new LoggingRule("*", LogLevel.Trace, exceptioneerTarget)); + // } + // catch (Exception e) + // { + // Console.WriteLine(e); + // } + //} try {