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

Move Mason Logger call during rebuild to avoid apparent logger race condition exception (Resolves #76) #77

Merged
merged 1 commit into from
Mar 30, 2024

Conversation

matthew-carroll
Copy link
Contributor

Move Mason Logger call during rebuild to avoid apparent logger race condition exception (Resolves #76)

The original issue #76 looks like it was probably already fixed but I was running an older version of the static_shock_cli. I wasn't able to recreate the crash when running the latest version of the CLI from local sources.

I did, however, move the mason_logger log statement such that it never attempts to log anything until after we've verified that we're not already building the website. There seems to be some kind of race condition with the logger that's causing an exception. Rather than repeatedly catch that exception and warn the user, I moved the log statement to a safe location.

I filed felangel/mason#1280 with mason_logger.

This PR also upgrades mason_logger to 0.2.12, though this upgrade didn't solve the problem.

@matthew-carroll matthew-carroll merged commit c25ef12 into main Mar 30, 2024
@matthew-carroll matthew-carroll deleted the fix-mason-logger-error-on-rebuild branch March 30, 2024 07:20
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.

[CLI] - Dev server routinely crashes
1 participant