Log exception when (static) mapping file cannot be read (#1202)

This commit is contained in:
Stef Heyenrath
2024-10-29 19:52:31 +01:00
committed by GitHub
parent 214fb539ec
commit 3693d6a676
4 changed files with 7 additions and 7 deletions

View File

@@ -178,9 +178,9 @@ public partial class WireMockServer
{
ReadStaticMappingAndAddOrUpdate(filename);
}
catch
catch (Exception exception)
{
_settings.Logger.Error("Static MappingFile : '{0}' could not be read. This file will be skipped.", filename);
_settings.Logger.Error($"Static MappingFile : '{filename}' could not be read. This file will be skipped.", exception);
}
}
}