platform: cleaner startup logs

This commit is contained in:
Torrie Fischer 2023-12-20 12:12:16 +01:00
parent 924673ada3
commit 0826970374

View File

@ -110,14 +110,18 @@ Platform::bootSplash()
Log.error(u8"Last Figment was %s", lastTaskBuf);
}
Log.trace("Startup reason: %d", bootopts.resetReason);
Log.trace("Registered tasks:");
auto it = beginTasks();
while (it != endTasks()) {
if (!(*it)->isFigment()) {
Log.trace(" %s", (*it)->name);
}
++it;
}
Log.trace("Registered Figments:");
it = beginTasks();
while (it != endTasks()) {
if ((*it)->isFigment()) {
Log.trace(" Figment: %s", (*it)->name);
} else {
Log.trace(" %s", (*it)->name);
}
++it;