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

fix: [IC-272] use query call on management canister fetch_canister_logs method #3646

Merged
merged 7 commits into from Mar 8, 2024

Conversation

maksymar
Copy link
Contributor

@maksymar maksymar commented Mar 6, 2024

Description

The management canister method fetch_canister_logs can only be called as a query, not an update call, so this PR fixes the issue.

How Has This Been Tested?

Built and run dfx locally to verify a rust canister collects the logs and they can be retrieved by using dfx canister logs <canister_id>.

Output example:
image

Checklist:

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

@maksymar maksymar changed the title feat: [IC-272] fix calling fetch_canister_logs as a query call fix: [IC-272] fix calling fetch_canister_logs as a query call Mar 6, 2024
@maksymar maksymar marked this pull request as ready for review March 6, 2024 15:43
@maksymar maksymar requested review from chenyan-dfinity and a team as code owners March 6, 2024 15:43
@maksymar maksymar changed the title fix: [IC-272] fix calling fetch_canister_logs as a query call fix: [IC-272] use query call on management canister fetch_canister_logs method Mar 6, 2024
@adamspofford-dfinity
Copy link
Contributor

Can you add a test for this?

@maksymar
Copy link
Contributor Author

maksymar commented Mar 7, 2024

Can you add a test for this?

Done, PTAL.

@lwshang lwshang merged commit d8940ef into dfinity:master Mar 8, 2024
175 checks passed
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.

None yet

3 participants