Switch multilevel app settings
Removed gpcl6win64 and LincPDFC just from proj file Removed package.json to clean out publish directory
This commit is contained in:
@ -8,7 +8,7 @@ internal static partial class HelperEventLog
|
||||
|
||||
internal static bool ClearEventLogs(AppSettings appSettings, ILogger<Worker> logger)
|
||||
{
|
||||
if (Directory.Exists(appSettings.WatchDirectory))
|
||||
if (Directory.Exists(appSettings.FileWatcherConfiguration.WatchDirectory))
|
||||
{
|
||||
#pragma warning disable CA1416
|
||||
using (EventLog eventLog = new("Security", Environment.MachineName))
|
||||
@ -26,7 +26,7 @@ internal static partial class HelperEventLog
|
||||
{ logger.LogInformation("Error: {logName} - {message}.", eventLog.LogDisplayName, ex.Message); }
|
||||
}
|
||||
#pragma warning restore CA1416
|
||||
logger.LogCritical("{Company}", appSettings.Company);
|
||||
logger.LogCritical("{Company}", appSettings.FileWatcherConfiguration.Company);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user