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

CLI: Fix logging not showing in verdi daemon worker #6301

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Mar 1, 2024

The verdi daemon worker will launch a single daemon worker in the foreground which is useful for debugging. However, in this case, the logging was not configured to write to stdout which renders the command essentially moot.

The aiida.engine.daemon.worker.start_worker function now takes the argument foreground which is False by default, but when set to True, the logging is configured to write to stdout instead of the daemon log file.

The `verdi daemon worker` will launch a single daemon worker in the
foreground which is useful for debugging. However, in this case, the
logging was not configured to write to stdout which renders the command
essentially moot.

The `aiida.engine.daemon.worker.start_worker` function now takes the
argument `foreground` which is `False` by default, but when set to
`True`, the logging is configured to write to stdout instead of the
daemon log file.
@sphuber sphuber merged commit 9bd8585 into aiidateam:main Mar 8, 2024
19 checks passed
@sphuber sphuber deleted the fix/verdi-daemon-worker-logging branch March 8, 2024 08:47
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.

1 participant