From c773a1a90bd8a44b616da5ffcff7be657afcc61a Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Sun, 30 Apr 2023 20:46:50 -0500 Subject: [PATCH] refactor: Output log for each pipeline execution --- src/Recyclarr.Cli/Processors/SyncPipelineExecutor.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Recyclarr.Cli/Processors/SyncPipelineExecutor.cs b/src/Recyclarr.Cli/Processors/SyncPipelineExecutor.cs index 9f6be3d3..9aaf796c 100644 --- a/src/Recyclarr.Cli/Processors/SyncPipelineExecutor.cs +++ b/src/Recyclarr.Cli/Processors/SyncPipelineExecutor.cs @@ -6,11 +6,16 @@ namespace Recyclarr.Cli.Processors; public class SyncPipelineExecutor { + private readonly ILogger _log; private readonly IOrderedEnumerable _pipelines; private readonly IEnumerable _caches; - public SyncPipelineExecutor(IOrderedEnumerable pipelines, IEnumerable caches) + public SyncPipelineExecutor( + ILogger log, + IOrderedEnumerable pipelines, + IEnumerable caches) { + _log = log; _pipelines = pipelines; _caches = caches; } @@ -24,6 +29,7 @@ public class SyncPipelineExecutor foreach (var pipeline in _pipelines) { + _log.Debug("Executing Pipeline: {Pipeline}", pipeline.GetType().Name); await pipeline.Execute(settings, config); } }