Use log in KeepFilenameFormatter

This commit is contained in:
Denis-Cosmin Nutiu 2022-01-26 20:50:02 +02:00
parent 292d8e0dac
commit a6cc6a59bb

View file

@ -34,6 +34,7 @@ namespace Image.Output
/// <returns>An absolute path of the form output_directory/initialFileName.jpg</returns>
public string GetOutputPath(string initialFilePath)
{
Logger.LogDebug($"KeepFilenameFormatter - {_outputDirectory} - {initialFilePath}");
Guard.NotNullOrEmpty(initialFilePath, nameof(initialFilePath));
var fileName = Path.GetFileName(initialFilePath)?.Split(".")[0];
var path = Path.Join(_outputDirectory, $"{fileName}.jpg");