debug help

turns out my _event is null. because ical.
This commit is contained in:
Adam R. Grey 2021-10-27 21:37:31 -04:00
parent 5b99e360e7
commit 8b1f042ec9

View File

@ -153,7 +153,8 @@ namespace director
_signal.WaitOne(calendarNaptime); _signal.WaitOne(calendarNaptime);
if (!workQueue.TryDequeue(out todo)) { continue; } if (!workQueue.TryDequeue(out todo)) { continue; }
Console.WriteLine($"threadwork consumes! showtime at {todo.Showtime}, {todo.Occurrence._event.Summary} on {todo.Occurrence.CalendarSourceName}"); Console.WriteLine($"threadwork consumes!");
Console.WriteLine(JsonConvert.SerializeObject(todo));
todo.Configuration = findConfig(todo.Occurrence.CalendarSourceName, todo.Occurrence._event.Summary); todo.Configuration = findConfig(todo.Occurrence.CalendarSourceName, todo.Occurrence._event.Summary);
if (todo.Configuration == null) if (todo.Configuration == null)