mirror of
https://github.com/Radarr/Radarr
synced 2024-12-25 17:27:59 +00:00
Temporally disabled exceptioneer.
Fixed: Increased log file size to 1MB from 400K.
This commit is contained in:
parent
96317b476c
commit
4e49ceb640
1 changed files with 14 additions and 15 deletions
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using NLog;
|
||||
using NLog.Config;
|
||||
using NLog.Targets;
|
||||
|
@ -104,7 +103,7 @@ public static void RegisterRollingFileLogger(string fileName, LogLevel level)
|
|||
{
|
||||
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 @@ public static void RegisterRollingFileLogger(string fileName, LogLevel level)
|
|||
|
||||
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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue