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: ignore logging errors rather than panicking #3784

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

kantai
Copy link
Member

@kantai kantai commented Jul 10, 2023

Description

The log macros in the stacks-blockchain use a Fuse drain. This panics if there's a drain error -- like the logging FS is busy and would block.

This patch uses an IgnoreResult drain instead.

@codecov
Copy link

codecov bot commented Jul 10, 2023

Codecov Report

Merging #3784 (3bd9f46) into develop (8c03a6a) will decrease coverage by 9.72%.
The diff coverage is 50.00%.

@@             Coverage Diff             @@
##           develop    #3784      +/-   ##
===========================================
- Coverage    84.33%   74.62%   -9.72%     
===========================================
  Files          301      302       +1     
  Lines       286227   286798     +571     
===========================================
- Hits        241388   214014   -27374     
- Misses       44839    72784   +27945     
Impacted Files Coverage Δ
stacks-common/src/util/log.rs 49.05% <50.00%> (ø)

... and 117 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@obycode obycode left a comment

Choose a reason for hiding this comment

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

LGTM

@blockstack-devops
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Nov 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Status: Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

4 participants