Skip to content

Commit

Permalink
Merge pull request #118 from Resgrid/develop
Browse files Browse the repository at this point in the history
CU-8687yhbz5 fixing issue with config
  • Loading branch information
ucswift authored May 12, 2024
2 parents c36ee85 + a9b5912 commit 727bc98
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 123 deletions.
18 changes: 9 additions & 9 deletions Core/Resgrid.Config/ConfigProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ public static bool LoadAndProcessEnvVariables(IEnumerable<KeyValuePair<string, s

bool hasSetAtLeastOneVariable = false;

try
foreach (var configValue in values)
{
foreach (var configValue in values)
try
{
if (!String.IsNullOrWhiteSpace(configValue.Value) && configValue.Key.StartsWith("RESGRID"))
{
Expand Down Expand Up @@ -120,14 +120,14 @@ public static bool LoadAndProcessEnvVariables(IEnumerable<KeyValuePair<string, s
}
}
}

return hasSetAtLeastOneVariable;

}
catch (Exception ex)
{
return false;
catch (Exception ex)
{
Console.WriteLine($"Resgrid.Config: Error processing Environment Variable: {configValue.Key}");
Console.WriteLine(ex.ToString());
}
}

return hasSetAtLeastOneVariable;
}
}
}
114 changes: 0 additions & 114 deletions Core/Resgrid.Config/ResgridConfig.json

This file was deleted.

0 comments on commit 727bc98

Please sign in to comment.