1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-21 22:05:43 -04:00

Fixed: Improve Logging, Slowdown startup if non-recoverable errors

This commit is contained in:
Qstick
2020-01-19 16:04:16 -05:00
parent 01b0365884
commit f0ef6c3601
47 changed files with 197 additions and 77 deletions
@@ -1,7 +1,8 @@
using System;
using System;
using System.IO;
using NLog;
using NzbDrone.Common.EnvironmentInfo;
using NzbDrone.Common.Exceptions;
namespace NzbDrone.Common.Processes
{
@@ -37,8 +38,8 @@ namespace NzbDrone.Common.Processes
}
catch (Exception ex)
{
_logger.Error(ex, "Unable to write PID file: " + filename);
throw;
_logger.Error(ex, "Unable to write PID file: {0}", filename);
throw new RadarrStartupException(ex, "Unable to write PID file {0}", filename);
}
}
}