Fix Log Statement Grouping in FreeSpaceSpec

Fixes #4184
This commit is contained in:
Qstick 2020-02-23 13:07:56 -05:00 committed by GitHub
parent b0afbce97c
commit c7dfd9dcf1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,11 +55,11 @@ public Decision IsSatisfiedBy(LocalMovie localMovie, DownloadClientItem download
}
catch (DirectoryNotFoundException ex)
{
_logger.Error("Unable to check free disk space while importing. " + ex.Message);
_logger.Error(ex, "Unable to check free disk space while importing.");
}
catch (Exception ex)
{
_logger.Error(ex, "Unable to check free disk space while importing: " + localMovie.Path);
_logger.Error(ex, "Unable to check free disk space while importing: {0}", localMovie.Path);
}
return Decision.Accept();