Add temp logging, Move Http to be last in the order as its currently blocking, a few exceptions blocked out onLoad methods

This commit is contained in:
CWX
2025-01-11 21:43:43 +00:00
parent 0d158d2285
commit e2dbb7a092
7 changed files with 30 additions and 18 deletions
+17 -3
View File
@@ -79,9 +79,23 @@ public class App
_logger.Debug("Commit: ${ProgramStatics.COMMIT}");
}
*/
foreach (var onLoad in _onLoad) await onLoad.OnLoad();
foreach (var onLoad in _onLoad)
{
Console.WriteLine($"Start Onload: {onLoad.GetRoute()}");
await onLoad.OnLoad();
Console.WriteLine($"finish Onload: {onLoad.GetRoute()}");
}
var timer = new Timer(_ => { update(_onUpdate); }, null, TimeSpan.Zero, TimeSpan.FromMilliseconds(5000));
var timer = new Timer(_ =>
{
Console.WriteLine($"Start OnUpdate");
update(_onUpdate);
Console.WriteLine($"Finish OnUpdate");
},
null,
TimeSpan.Zero,
TimeSpan.FromMilliseconds(5000));
}
protected async Task update(IEnumerable<OnUpdate> onUpdateComponents)
@@ -124,4 +138,4 @@ public class App
_logger.Error(_localisationService.GetText("scheduled_event_failed_to_run", updateable.GetRoute()));
_logger.Error(err.ToString());
}
}
}