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 @@ namespace NzbDrone.Common.Instrumentation
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 @@ namespace NzbDrone.Common.Processes
}
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 @@ namespace NzbDrone.Core.Datastore
}
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 @@ namespace NzbDrone.Core.HealthCheck.Checks
{
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 @@ namespace NzbDrone.Core.Messaging.Commands
}
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 @@ namespace NzbDrone.Core.Metadata.Consumers.Xbmc
}
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>();
}