diff --git a/Roadie.Api.Library/Imaging/DefaultNotFoundImages.cs b/Roadie.Api.Library/Imaging/DefaultNotFoundImages.cs index 727ffa1..3806ba4 100644 --- a/Roadie.Api.Library/Imaging/DefaultNotFoundImages.cs +++ b/Roadie.Api.Library/Imaging/DefaultNotFoundImages.cs @@ -16,6 +16,7 @@ namespace Roadie.Library.Imaging private Image _track; private Image _user; + private ILogger Logger { get; } public Image Artist { @@ -76,9 +77,10 @@ namespace Roadie.Library.Imaging private IRoadieSettings Configuration { get; } - public DefaultNotFoundImages(IRoadieSettings configuration) + public DefaultNotFoundImages(ILogger logger, IRoadieSettings configuration) { this.Configuration = configuration; + this.Logger = logger; } private static Image MakeImageFromFile(string filename) @@ -102,7 +104,12 @@ namespace Roadie.Library.Imaging { return null; } - return Path.Combine(this.Configuration.ContentPath, filename); + var path= Path.Combine(this.Configuration.ContentPath, filename); + if(!File.Exists(path)) + { + this.Logger.LogWarning("Unable To Find Path [{0}], ContentPath [{1}]", path, this.Configuration.ContentPath); + } + return path; } } } \ No newline at end of file