From b0f943b5bfe31c0145e0dcc7de5b8b22d9beae7d Mon Sep 17 00:00:00 2001 From: Eric Swanson <64809312+ericswanson-dfinity@users.noreply.github.com> Date: Wed, 13 Jul 2022 12:35:03 -0700 Subject: [PATCH] Revert "chore: Revert "feat: Add additional logging from bitcoin canister in replica." (#2342)" This reverts commit 9541a900422918f0bfed38aaea04561b2e0ce554. --- CHANGELOG.adoc | 4 ++++ src/dfx/src/actors/replica.rs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index d853593356..abd23d7733 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -5,6 +5,10 @@ == DFX +=== feat: Add additional logging from bitcoin canister in replica. + +Configures the replica to emit additional logging from the bitcoin canister whenever the bitcoin feature is enabled. This helps show useful information to developers, such as the bitcoin height that the replica currently sees. + === feat: renamed canisters in new projects to _frontend and _backend The names of canisters created for new projects have changed. diff --git a/src/dfx/src/actors/replica.rs b/src/dfx/src/actors/replica.rs index 40ea5b90b9..098b41eec1 100644 --- a/src/dfx/src/actors/replica.rs +++ b/src/dfx/src/actors/replica.rs @@ -318,6 +318,10 @@ fn replica_start_thread( socket_path.to_str().unwrap_or_default(), ]); } + + // Show debug logs from the bitcoin canister. + // This helps developers see, for example, the current tip height. + cmd.args(&["--debug-overrides", "ic_btc_canister::heartbeat"]); } if config.canister_http_adapter.enabled { cmd.args(&["--subnet-features", "http_requests"]);