nlog: fixed config

This commit is contained in:
Alexey Bannov 2022-09-15 18:17:23 +03:00
parent ee27ad4437
commit ab5de603c1

View File

@ -34,7 +34,7 @@ public static class ConfigurationManagerExtension
{
config
.AddJsonFile("elastic.json", optional: false, reloadOnChange: true)
.AddJsonFile($"elastic.{env.EnvironmentName}.json", optional: false, reloadOnChange: true);
.AddJsonFile($"elastic.{env.EnvironmentName}.json", optional: true, reloadOnChange: true);
return config;
}