chore(sdk): Add debugging for unknown value in bundle database
Ref #28.
This commit is contained in:
parent
09f357d72d
commit
b9cd9ed5de
1 changed files with 4 additions and 0 deletions
|
@ -129,6 +129,10 @@ impl FromBinary for BundleDatabase {
|
|||
let mut buffer = [0; 20];
|
||||
r.read_exact(&mut buffer)?;
|
||||
|
||||
if cfg!(debug_assertions) && buffer.iter().any(|b| *b != 0) {
|
||||
tracing::warn!("Unknown value in 20-byte buffer: {:?}", buffer);
|
||||
}
|
||||
|
||||
let file_time = r.read_u64()?;
|
||||
|
||||
let file = BundleFile {
|
||||
|
|
Loading…
Add table
Reference in a new issue