[WF] get_new_app_events logs with mylog("none", ...) — prints every 5 s regardless of LOG_LEVEL
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 87/100
Línea de trabajo
Lee la llamada de registro en server/workflows/manager.py:82 y compárala con la llamada contigua en server/main.py:260. Cambia el nivel del mensaje para que LOG_LEVEL pueda silenciar la consulta frecuente sin eventos. Luego, verifica que la línea ya no aparezca con el registro mínimo, mientras que siga apareciendo con el registro de depuración.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What installation are you running?
Production (netalertx) 📦 — ghcr.io/netalertx/netalertx:26.9.0
Is there an existing issue for this?
- I have searched the existing open and closed issues and checked the docs
Current Behavior
The app log prints one line every ~5 seconds — about 17k lines/day:
01:24:49 [WF] get_new_app_events - new events count: 0
01:24:54 [WF] get_new_app_events - new events count: 0
This happens regardless of configuration: with LOG_LEVEL='minimal', and even after removing 'WORKFLOWS' from LOADED_PLUGINS (the call comes from the core main loop in server/__main__.py, not from the plugin).
Root cause
server/workflows/manager.py line 82 logs this message with level "none":
"none" is the lowest threshold in mylog, so the message prints at every LOG_LEVEL setting — effectively an unconditional print in the hot loop. The companion message two frames up, server/__main__.py line 260 ([MAIN] Processing WORKFLOW new_events from get_new_app_events), correctly uses "debug".
Expected Behavior
A periodic poll that almost always reports count: 0 should log at "debug" (or "trace"), consistent with the adjacent __main__.py call, and be silenceable via LOG_LEVEL.
Suggested fix
One-liner: change "none" to "debug" at server/workflows/manager.py:82. Happy to send a PR if that helps.
Context
Noticed while centralizing Docker container logs (journald → VictoriaLogs): this single line accounts for ~720 rows/h of the container's output with everything tuned down. Version 26.9.0 (digest 0ee5cdca…); the line is unchanged in main @ 49cd213.
- Lenguaje dominante
- Python
- Estrellas
- 7.2k
- Forks
- 456
- Merge medio
- 19 h 17 min
- PR fusionados (30 d)
- 26
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de netalertx/NetAlertX
-
[Bug] Internet-Check returns 0.0.0.0 when IPv6 is enabled and OpenDNS lookup failsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug 🐛
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
bug 🐛 next release/in dev image 🚀
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
netalertx/NetAlertX#1841 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug 🐛 next release/in dev image 🚀
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
netalertx/NetAlertX#1826 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug 🐛 Contributors 🙏 help wanted 🆘
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
UNFIMP does not populate devSSID for UniFi wireless clientsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. AbiertoFeature request ➕ next release/in dev image 🚀 Waiting for reply⏳
Dificultad 2/5 1-3 horas Aptitud para principiantes 25/100
netalertx/NetAlertX#1832 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de netalertx/NetAlertX
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ok-oldking/ok-wuthering-waves#1785 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
healthchecks/healthchecks#1349 ·
-
deployment release-lag
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
nolte/kamerplanter#2374 ·
Los mantenedores suelen responder en 1 día
-
bug v1 v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
modelcontextprotocol/python-sdk#3725 ·
Los mantenedores suelen responder en 1 día
-
batchterms() drops queries without a similar() clause, misaligning results with inputsPosiblemente ocupada @MohammadHijjawi97 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día