1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Certain log messages didn't include the exception.

This commit is contained in:
Taloth Saldono 2016-02-07 00:23:13 +01:00
parent 4038fa6907
commit 68540cb479
6 changed files with 6 additions and 6 deletions

View File

@ -19,7 +19,7 @@ private static void HandleTaskException(object sender, UnobservedTaskExceptionEv
var exception = e.Exception;
Console.WriteLine("Task Error: {0}", exception);
Logger.Error("Task Error: " + exception.Message, exception);
Logger.ErrorException("Task Error: " + exception.Message, exception);
}
private static void HandleAppDomainException(object sender, UnhandledExceptionEventArgs e)

View File

@ -37,7 +37,7 @@ public void Write()
}
catch (Exception ex)
{
_logger.Error("Unable to write PID file: " + filename, ex);
_logger.ErrorException("Unable to write PID file: " + filename, ex);
throw;
}
}

View File

@ -50,7 +50,7 @@ public void Vacuum()
}
catch (Exception e)
{
_logger.Error("An Error occurred while vacuuming database.", e);
_logger.ErrorException("An Error occurred while vacuuming database.", e);
}
}
}

View File

@ -35,7 +35,7 @@ public override HealthCheck Check()
{
var message = String.Format("Unable to communicate with {0}.", downloadClient.Definition.Name);
_logger.Error(message, ex);
_logger.ErrorException(message, ex);
return new HealthCheck(GetType(), HealthCheckResult.Error, message + " " + ex.Message);
}
}

View File

@ -53,7 +53,7 @@ private void ExecuteCommands()
}
catch (Exception ex)
{
_logger.Error("Unknown error in thread: " + ex.Message, ex);
_logger.ErrorException("Unknown error in thread: " + ex.Message, ex);
}
}

View File

@ -335,7 +335,7 @@ public override List<ImageFileResult> EpisodeImages(Series series, EpisodeFile e
}
catch (Exception ex)
{
_logger.Error("Unable to process episode image for file: " + Path.Combine(series.Path, episodeFile.RelativePath), ex);
_logger.ErrorException("Unable to process episode image for file: " + Path.Combine(series.Path, episodeFile.RelativePath), ex);
return new List<ImageFileResult>();
}