diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 0776e3f2cd..d900aeab0d 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. + === fix: make `+build+` field optional for custom canisters Prior to 0.11.0, a custom canister's `+build+` field could be left off if `+dfx build+` was never invoked. To aid in deploying prebuilt canisters, this behavior is now formalized; omitting `+build+` is equivalent to `+build: []+`. diff --git a/src/dfx/src/actors/replica.rs b/src/dfx/src/actors/replica.rs index 37113747c2..70ea1a7cde 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"]);