Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add additional logging from bitcoin canister in replica. #2318

Merged
merged 3 commits into from
Jul 12, 2022

Conversation

ielashi
Copy link
Contributor

@ielashi ielashi commented Jul 6, 2022

Description

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.

Fixes # EXC-1131

How Has This Been Tested?

Ran it locally with a bitcoin enabled project and verified that I'm seeing
the logs from the bitcoin canister that I'm expecting to see.

Checklist:

  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

ielashi added 2 commits July 6, 2022 10:07
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.

Closes EXC-1131
@ielashi ielashi requested a review from a team as a code owner July 6, 2022 08:13
@sesi200
Copy link
Contributor

sesi200 commented Jul 6, 2022

Does this play nicely with #2310?

@ielashi
Copy link
Contributor Author

ielashi commented Jul 6, 2022

Does this play nicely with #2310?

Yes, this is different. #2310 configures the logging level of the bitcoin adapter. This PR configures the logging level of the bitcoin canister, which lives inside the replica. For the latter it suffices to hard-code its logging level, which this PR is doing.

@ielashi
Copy link
Contributor Author

ielashi commented Jul 6, 2022

Note that this cannot be merged in master yet until we upgrade the replica version being used to something that includes this commit: dfinity/ic@901226d

@mergify mergify bot merged commit 5eea226 into master Jul 12, 2022
@mergify mergify bot deleted the ielashi/bitcoin_debug_overrides branch July 12, 2022 17:56
mergify bot pushed a commit that referenced this pull request Jul 13, 2022
…replica." (#2342)

Reverts #2318

This change is preventing us from updating to the latest hotfix replica (example: #2341 and [build failure](https://github.com/dfinity/sdk/runs/7326295725?check_suite_focus=true#step:8:1357)).  Will re-incorporate this change when future replica releases support it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants