Browse Source

add more filler logging (#854)

pull/856/head
Jason Dove 3 years ago committed by GitHub
parent
commit
6a690c7c10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      ErsatzTV.Core/Scheduling/PlayoutModeSchedulerBase.cs

10
ErsatzTV.Core/Scheduling/PlayoutModeSchedulerBase.cs

@ -676,7 +676,7 @@ public abstract class PlayoutModeSchedulerBase<T> : IPlayoutModeScheduler<T> whe @@ -676,7 +676,7 @@ public abstract class PlayoutModeSchedulerBase<T> : IPlayoutModeScheduler<T> whe
}
else
{
if (itemDuration >= duration * 2)
if (itemDuration >= duration * 1.5)
{
_logger.LogWarning(
"Filler item is too long {FillerDuration} to fill {GapDuration}; skipping to next filler item",
@ -688,6 +688,14 @@ public abstract class PlayoutModeSchedulerBase<T> : IPlayoutModeScheduler<T> whe @@ -688,6 +688,14 @@ public abstract class PlayoutModeSchedulerBase<T> : IPlayoutModeScheduler<T> whe
}
else
{
if (itemDuration > duration)
{
_logger.LogWarning(
"Filler item is too long {FillerDuration} to fill {GapDuration}; aborting filler block",
itemDuration,
duration);
}
// set to zero so it breaks out of the while loop
remainingToFill = TimeSpan.Zero;
}

Loading…
Cancel
Save