mirror of https://github.com/Sonarr/Sonarr
Certain log messages didn't include the exception.
This commit is contained in:
parent
4038fa6907
commit
68540cb479
|
@ -19,7 +19,7 @@ namespace NzbDrone.Common.Instrumentation
|
||||||
var exception = e.Exception;
|
var exception = e.Exception;
|
||||||
|
|
||||||
Console.WriteLine("Task Error: {0}", 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)
|
private static void HandleAppDomainException(object sender, UnhandledExceptionEventArgs e)
|
||||||
|
|
|
@ -37,7 +37,7 @@ namespace NzbDrone.Common.Processes
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Error("Unable to write PID file: " + filename, ex);
|
_logger.ErrorException("Unable to write PID file: " + filename, ex);
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ namespace NzbDrone.Core.Datastore
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
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 @@ namespace NzbDrone.Core.HealthCheck.Checks
|
||||||
{
|
{
|
||||||
var message = String.Format("Unable to communicate with {0}.", downloadClient.Definition.Name);
|
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);
|
return new HealthCheck(GetType(), HealthCheckResult.Error, message + " " + ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,7 @@ namespace NzbDrone.Core.Messaging.Commands
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
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 @@ namespace NzbDrone.Core.Metadata.Consumers.Xbmc
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
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>();
|
return new List<ImageFileResult>();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue