aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-11-20 23:37:34 +0100
committerAlex Auvolat <alex@adnab.me>2020-11-20 23:53:54 +0100
commita8b3c8fd5898400d64310f61bb1a41dd5fefe5ea (patch)
treef37a1ce39bfae7c3f706162e186df4064635bd74 /src
parentf9be964c3f3efd10f1bd9cf752d839f8133edcc1 (diff)
downloadgarage-feature/better-crdt.tar.gz
garage-feature/better-crdt.zip
data hexdump in warningfeature/better-crdt
Diffstat (limited to 'src')
-rw-r--r--src/table/Cargo.toml1
-rw-r--r--src/table/table.rs3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/table/Cargo.toml b/src/table/Cargo.toml
index 1963f3da..945763fa 100644
--- a/src/table/Cargo.toml
+++ b/src/table/Cargo.toml
@@ -21,6 +21,7 @@ rand = "0.7"
hex = "0.3"
arc-swap = "0.4"
log = "0.4"
+hexdump = "0.1"
sled = "0.31"
diff --git a/src/table/table.rs b/src/table/table.rs
index 54a42d34..5dfee3c8 100644
--- a/src/table/table.rs
+++ b/src/table/table.rs
@@ -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())
}
},