mirror of
https://github.com/lidarr/Lidarr
synced 2025-03-03 18:15:37 +00:00
Fixed bug in ExceptionVerification.
This commit is contained in:
parent
e56aca17e8
commit
3bd7d28d3f
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ private static string GetLogsString(IEnumerable<LogEventInfo> logs)
|
||||||
string exception = "";
|
string exception = "";
|
||||||
if (log.Exception != null)
|
if (log.Exception != null)
|
||||||
{
|
{
|
||||||
exception = "[" + log.Exception.Message + "]";
|
exception = String.Format("[{0}: {1}]", log.Exception.GetType(), log.Exception.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
errors += Environment.NewLine + String.Format("[{0}] {1}: {2} {3}", log.Level, log.LoggerName, log.FormattedMessage, exception);
|
errors += Environment.NewLine + String.Format("[{0}] {1}: {2} {3}", log.Level, log.LoggerName, log.FormattedMessage, exception);
|
||||||
|
@ -76,7 +76,7 @@ public static void IgnoreErrors()
|
||||||
|
|
||||||
public static void MarkInconclusive(Type exception)
|
public static void MarkInconclusive(Type exception)
|
||||||
{
|
{
|
||||||
var inconclusiveLogs = _logs.Where(l => l.Exception.GetType() == exception).ToList();
|
var inconclusiveLogs = _logs.Where(l => l.Exception != null && l.Exception.GetType() == exception).ToList();
|
||||||
|
|
||||||
if (inconclusiveLogs.Count != 0)
|
if (inconclusiveLogs.Count != 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue