Skip to content

Commit

Permalink
config reloadchange false, potential inotify watcher fix
Browse files Browse the repository at this point in the history
  • Loading branch information
toutas committed Oct 2, 2022
1 parent 361c437 commit 40dc564
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private static IHostBuilder CreateHostBuilder(string[] args, CancellationTokenSo
_configuration = new ConfigurationBuilder()
.SetBasePath(cwd)
.AddCommandLine(args)
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: false)
.Build();

(string? configAbsolutePath, string? logFilePath, bool verboseFlagExists) = ParseArguments(args);
Expand Down
2 changes: 1 addition & 1 deletion SARotate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ private int GetMaxNumberOfServiceAccountsForProject(IEnumerable<IGrouping<string
catch (Exception)
{
const string logMessage = "service account json file {filePath} is invalid";
LogMessage(logMessage, LogLevel.Critical, filePath);
LogMessage(logMessage, LogLevel.Error, filePath);
}
}

Expand Down

0 comments on commit 40dc564

Please sign in to comment.