Skip to content

Commit

Permalink
add more helpful debug output for token claim failure
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnie committed Dec 24, 2023
1 parent 9757c72 commit 23a9b0c
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions services/gam/src/tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 23a9b0c

Please sign in to comment.