Skip to content

fix: map loguru log levels to stdlib equivalents in worker subprocess#357

Merged
allison-truhlar merged 1 commit into
mainfrom
fix-local-worker-logging-error
Apr 21, 2026
Merged

fix: map loguru log levels to stdlib equivalents in worker subprocess#357
allison-truhlar merged 1 commit into
mainfrom
fix-local-worker-logging-error

Conversation

@allison-truhlar
Copy link
Copy Markdown
Collaborator

The parent process passes FGC_LOG_LEVEL (a loguru level) to the worker subprocess, which uses stdlib logging. Loguru-specific levels like TRACE (used in my local dev mode, which is where I discovered the bug) crash the worker with "Unknown level" ValueError, preventing app manifest fetches from completing.
@krokicki

The parent process passes FGC_LOG_LEVEL (a loguru level) to the worker
subprocess, which uses stdlib logging. Loguru-specific levels like TRACE
crash the worker with "Unknown level" ValueError, preventing app manifest
fetches from completing.
@allison-truhlar allison-truhlar merged commit 52afe25 into main Apr 21, 2026
3 checks passed
@allison-truhlar allison-truhlar deleted the fix-local-worker-logging-error branch April 21, 2026 14:50
@krokicki
Copy link
Copy Markdown
Member

Should we maybe switch the worker process to use loguru in the future?

But I know @neomorphic was worried about import size.

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.

2 participants