Skip to content

Commit

Permalink
Improve logging where no directories are configured
Browse files Browse the repository at this point in the history
  • Loading branch information
elzik committed Oct 6, 2023
1 parent d38da73 commit f4f0063
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Elzik.FmSync.Worker/FmSyncWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken)
_logger.LogInformation("Watcher on {DirectoryPath} has started.", directoryPaths);
}

_logger.LogInformation("A total of {WatcherCount} folder watchers are running.", _folderWatchers.Count);
_logger.LogInformation("A total of {WatcherCount} directory watchers are running.", _folderWatchers.Count);
if (_folderWatchers.Count < 1)
{
_logger.LogWarning("Add a directory to watch to the {ConfigSection}:{ConfigItem} configuration.",
_logger.LogWarning("No directories are being watched. Add at least one directory to watch to the {ConfigSection}:{ConfigItem} configuration.",
nameof(WatcherOptions), nameof(WatcherOptions.WatchedDirectoryPaths));
}

Expand Down

0 comments on commit f4f0063

Please sign in to comment.