mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-04-16 09:22:21 +00:00
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:
parent
e9a4d19d8c
commit
5348f3a9a9
@ -206,6 +206,13 @@ namespace Makhno
|
|||||||
.Where(v => v.Seasons.Count > 0)
|
.Where(v => v.Seasons.Count > 0)
|
||||||
.ToList();
|
.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
|
var seasonNumbers = voiceSeasons
|
||||||
.SelectMany(v => v.Seasons.Select(s => s.Number))
|
.SelectMany(v => v.Seasons.Select(s => s.Number))
|
||||||
.Distinct()
|
.Distinct()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user