You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
recyclarr/src/Recyclarr.Cli/Pipelines/Tags/PipelinePhases/TagLogPhase.cs

36 lines
884 B

using Recyclarr.Cli.Pipelines.Generic;
namespace Recyclarr.Cli.Pipelines.Tags.PipelinePhases;
public class TagLogPhase(ILogger log) : ILogPipelinePhase<TagPipelineContext>
{
public bool LogConfigPhaseAndExitIfNeeded(TagPipelineContext context)
{
if (!context.ConfigOutput.Any())
{
log.Debug("No tags to process");
return true;
}
return false;
}
public void LogTransactionNotices(TagPipelineContext context)
{
}
public void LogPersistenceResults(TagPipelineContext context)
{
if (context.TransactionOutput.Any())
{
log.Information("Created {Count} Tags: {Tags}",
context.TransactionOutput.Count,
context.TransactionOutput);
}
else
{
log.Information("All tags are up to date!");
}
}
}