data hexdump in warning

This commit is contained in:
Alex Auvolat
2020-11-20 23:37:34 +01:00
parent f9be964c3f
commit a8b3c8fd58
3 changed files with 43 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@ rand = "0.7"
hex = "0.3"
arc-swap = "0.4"
log = "0.4"
hexdump = "0.1"
sled = "0.31"
+3
View File
@@ -464,6 +464,9 @@ where
Some(x) => Ok(x),
None => {
warn!("Unable to decode entry of {}: {}", self.name, e);
for line in hexdump::hexdump_iter(bytes) {
debug!("{}", line);
}
Err(e.into())
}
},