Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.
/ SARotate Public archive

Commit 40dc564

Browse files
committed
config reloadchange false, potential inotify watcher fix
1 parent 361c437 commit 40dc564

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private static IHostBuilder CreateHostBuilder(string[] args, CancellationTokenSo
6464
_configuration = new ConfigurationBuilder()
6565
.SetBasePath(cwd)
6666
.AddCommandLine(args)
67-
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
67+
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: false)
6868
.Build();
6969

7070
(string? configAbsolutePath, string? logFilePath, bool verboseFlagExists) = ParseArguments(args);

SARotate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ private int GetMaxNumberOfServiceAccountsForProject(IEnumerable<IGrouping<string
351351
catch (Exception)
352352
{
353353
const string logMessage = "service account json file {filePath} is invalid";
354-
LogMessage(logMessage, LogLevel.Critical, filePath);
354+
LogMessage(logMessage, LogLevel.Error, filePath);
355355
}
356356
}
357357

0 commit comments

Comments
 (0)