fix(makhno): add debug logging for season filtering logic

Added debug logging to track voice selection and season filtering behavior during season number filtering. This helps diagnose issues with voice-season relationships and filtering logic.
This commit is contained in:
baliasnyifeliks 2026-02-04 20:02:36 +02:00
parent e9a4d19d8c
commit 5348f3a9a9

View File

@ -206,6 +206,13 @@ namespace Makhno
.Where(v => v.Seasons.Count > 0)
.ToList();
OnLog($"Makhno SeasonDebug: voices={playerData.Voices.Count}, withSeasons={voiceSeasons.Count}, t={t}, season={season}");
foreach (var v in voiceSeasons)
{
var seasonList = string.Join(", ", v.Seasons.Select(s => $"{s.Number}:{s.Season?.Title}"));
OnLog($"Makhno SeasonDebug: voice[{v.Index}]='{v.Voice?.Name}', seasons=[{seasonList}]");
}
var seasonNumbers = voiceSeasons
.SelectMany(v => v.Seasons.Select(s => s.Number))
.Distinct()