add more helpful debug output for token claim failure

This commit is contained in:
bunnie 2023-12-24 22:14:39 +08:00
parent 9757c72519
commit 23a9b0cc34

View file

@ -42,9 +42,20 @@ impl<'a> TokenManager {
} else {
// throw a bone to the dev who has to debug this error. This typically only triggers after a major
// refactor and some UX element was removed and we forgot to update it in this table here.
log::info!("Occupied token slots:");
log::info!("Occupied token slots: ***");
for t in self.tokens.iter() {
log::info!("{}", t.name);
log::info!(" {}", t.name);
}
log::info!("Expected token slots:");
for t in EXPECTED_BOOT_CONTEXTS.iter() {
log::info!(" {}", t);
}
for t in EXPECTED_APP_CONTEXTS.iter() {
log::info!(" {}", t);
}
#[cfg(feature="unsafe-app-loading")]
for t in self.extra_names.iter() {
log::info!("{}", t);
}
false
}