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

Worker logging doesn't work #634

Open
2 tasks done
lpogo opened this issue Jul 16, 2024 · 0 comments
Open
2 tasks done

Worker logging doesn't work #634

lpogo opened this issue Jul 16, 2024 · 0 comments

Comments

@lpogo
Copy link
Contributor

lpogo commented Jul 16, 2024

Checklist

  • I have included information about relevant versions
  • I have verified that the issue persists when using the master branch of Faust.

Steps to reproduce

After upgrade to faust-streaming > 0.8.10 (PR: #368) I am not able to force faust to logging any info from Worker. When app sis starting, only +ƒaµS† v0.8.11+ table info is printed and any warnings before.
Before version 0.8.11 it was working like that.
When I am using logging_config in faust.App (0.8.10) my logging configuration is fine. Since 0.8.11 it is not.

When you change lines back in faust/worker.py (reverse PR changes), then everything is working fine.
The same, when override_logging is changed to False in source code of mode.Worker (parent of faust.Worker)

Any idea whats wrong or how to handle logging?

Expected behavior

Faust print info like:

[^Worker]: Starting...
[^-App]: Starting...
[^-App]: Started.
Executing _on_partitions_assigned
[^Worker]: Ready
[^Worker]: Started.

based on defined logging configuration as well as info about processed events.

Actual behavior

Only +ƒaµS† v0.8.11+ table info is printed to log and warinign before. After that nothing is logged, even errors related to communication issue.

Full traceback

n/a

Versions

  • Python version: 3.10
  • Faust versio: starting from 0.8.11
  • Operating system: Windows/Linux container
  • aiokafka: 0.10.0
  • Django 4.2.11
wbarnha added a commit that referenced this issue Jul 18, 2024
* Add override_logging argument to Worker

* Add worker_override_logging to App

* Update documentation

* Update tests

Co-authored-by: Lukasz Pogoda <>
Co-authored-by: William Barnhart <[email protected]>
wbarnha added a commit that referenced this issue Aug 23, 2024
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

No branches or pull requests

1 participant