Skip to content

Commit

Permalink
feat: logging
Browse files Browse the repository at this point in the history
  • Loading branch information
d4hines committed Sep 26, 2022
1 parent 5da2ae8 commit 931f973
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/vm_library/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ sha2 = "*"
nix = "*"
sha3 = "*"
base64 = "0.13.0"
log = "*"
[lib]
bench = false

Expand Down
1 change: 1 addition & 0 deletions crates/vm_library/src/run_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ pub fn run_loop(io: IO) {
context.io.write(&ServerMessage::Init(InitVec(vec![])))
}
ClientMessage::Transaction(transaction) => {
log::debug!("Received transaction {:?}", transaction);
match handle_transaction(&mut context, transaction, false, 0) {
Ok(_) => context.io.write(&ServerMessage::Stop),
Err(_) => break 'inner,
Expand Down
2 changes: 1 addition & 1 deletion nix/vm_library.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rustPlatform.buildRustPackage rec {
];
};

cargoSha256 = "sha256-aVqKi5KfKqkMPst/cSMtTwtzOem6VsNgCoMZpekRxBs=";
cargoSha256 = "sha256-OVoKaKbyCUkodJzrIhBlzkgNwa0xIYLDf9QUINdOYIw=";

nativeBuildInputs = [
m4
Expand Down

0 comments on commit 931f973

Please sign in to comment.