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 anvil_setLoggingEnabled #437

Merged
merged 2 commits into from
Nov 26, 2024
Merged

feat: add anvil_setLoggingEnabled #437

merged 2 commits into from
Nov 26, 2024

Conversation

itegulov
Copy link
Contributor

What 💻

Closes #433

This PR does a minor refactoring of Observability + its usage in InMemoryNode while adding the ability to disable logging entirely by setting env filter to off. As a consequence of that we need to store last used directives so we can recover them when user re-enables the logs. The exact cross-interaction with config_ methods is unspecified as anvil does not support that namespace, so I went with made the most sense to me.

Why ✋

Feature parity with anvil

@itegulov itegulov requested a review from a team as a code owner November 26, 2024 07:19
Copy link
Member

@popzxc popzxc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@itegulov itegulov merged commit 7f5b663 into main Nov 26, 2024
11 checks passed
@itegulov itegulov deleted the daniyar/anvil/logging branch November 26, 2024 08:09
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.

feat: implement anvil_setLoggingEnabled API endpoint
2 participants