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:
parent
4038fa6907
commit
68540cb479
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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>();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user