diff options
author | Alex Auvolat <alex@adnab.me> | 2020-11-20 23:37:34 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-11-20 23:53:54 +0100 |
commit | a8b3c8fd5898400d64310f61bb1a41dd5fefe5ea (patch) | |
tree | f37a1ce39bfae7c3f706162e186df4064635bd74 /src/table | |
parent | f9be964c3f3efd10f1bd9cf752d839f8133edcc1 (diff) | |
download | garage-feature/better-crdt.tar.gz garage-feature/better-crdt.zip |
data hexdump in warningfeature/better-crdt
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/Cargo.toml | 1 | ||||
-rw-r--r-- | src/table/table.rs | 3 |
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()) } }, |