Worker logging doesn't work

Abierto
#634 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
22/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
kafka, python

Línea de trabajo

The report points to the logging changes in faust/worker.py from PR 368 and to override_logging in the parent mode.Worker class, which controls whether the app's logging_config is applied. Start by reading how the worker sets up logging at startup and compare it with the 0.8.10 version. Done means the worker's startup messages appear under a user-supplied logging_config on the current master, with a test covering that path.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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: https://github.com/faust-streaming/faust/pull/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
Lenguaje dominante
Python
Estrellas
1.9k
Forks
205
Merge medio
2 h 2 min
PR fusionados (30 d)
1

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de faust-streaming/faust

Todos los issues de faust-streaming/faust

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.