Skip to content

lib.log: only push log updates for subscribed logs#775

Open
Morg42 wants to merge 2 commits intosmarthomeNG:developfrom
Morg42:memlog
Open

lib.log: only push log updates for subscribed logs#775
Morg42 wants to merge 2 commits intosmarthomeNG:developfrom
Morg42:memlog

Conversation

@Morg42
Copy link
Copy Markdown
Member

@Morg42 Morg42 commented Apr 2, 2026

proposed fix for #595

@Morg42 Morg42 requested a review from onkelandy April 2, 2026 14:48
@onkelandy
Copy link
Copy Markdown
Member

Verhalten ist akutell so:
[io.smarthomeng] receiving data: {"name": "memory_warn", "log": [{"time": "2026-04-07T09:44:06.084950+02:00", "thread": "logics.logiktest", "level": "ERROR", "message": "In der Logik ist ein Fehler aufgetreten:\n Logik 'logiktest', Datei '/usr/local/smarthome/etc/logics/logiktest.py', Zeile 6\n Hauptroutine der Logik, Exception: name 'bub' is not defined"}], "cmd": "log"}
io_smarthomeng.js:251 [io.smarthomeng] receiving data: {"name": "env.core.log", "log": [{"time": "2026-04-07T09:44:06.084950+02:00", "thread": "logics.logiktest", "level": "ERROR", "message": "In der Logik ist ein Fehler aufgetreten:\n Logik 'logiktest', Datei '/usr/local/smarthome/etc/logics/logiktest.py', Zeile 6\n Hauptroutine der Logik, Exception: name 'bub' is not defined"}], "cmd": "log"}
io_smarthomeng.js:297 [io.smarthomeng] ignoring data for not requested log "env.core.log"

Also ganz passt es eigentlich nicht - denn es kommen immer noch die Daten rein ("receiving data")

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