Using OH3 on Raspi 3B
Get following messages and slow down OH3 Sitemaps
2021-01-02 19:50:46.644 [WARN ] [su.litvak.chromecast.api.v2.Channel ] - Error while handling, caused by java.net.SocketException: Datenübergabe unterbrochen (broken pipe) (Write failed)
2021-01-02 19:50:46.673 [WARN ] [su.litvak.chromecast.api.v2.Channel ] - Error while reading, caused by su.litvak.chromecast.api.v2.ChromeCastException: Remote socket closed
2021-01-02 19:50:46.681 [WARN ] [su.litvak.chromecast.api.v2.Channel ] - <-- null payload in message
Does anyone have the same issue?
Yes, it is a known issue and unfortunately cannot be changed except by decreasing the log level:
I see. The warning is the same but in your case the stacktrace of the exception is appended. Point is that these warnings are from an underlying thirdparty library. They do not hurt, because everything is working fine after they occurred, but they are visible in your log. The exception was removed some time ago (see
https://github.com/openhab/openhab2-addons/issues/3770) but the warning will remain.
If you do not like them you can try to decrease logging on: su.litvak.chromecast.api.v2.
I’ve just updated to OH3, and I notice in the new log4j2.xml file there are built-in filters for a few other bindings? Would it be worthwhile to add a filter for the Chromecast in the base installation? Or is that a slippery slope?
<!-- Filters known issues of Chromecast -->
<!-- https://community.openhab.org/t/many-chromecast-audio-errors-captured-in-log/75824 -->
<Logger level="ERROR" name="su.litvak.chromecast.api.v2.Channel"/>
Yes, that might be an option. Will you contribute a fix?
I can, but you’ll have to tell me how to do it. To date, I’ve submitted one PR for a doc edit, so I don’t know how to fork/edit the core. Even just typing that makes me a little antsy.
From another discussion, I realized that I can just submit an issue to ask Wouter to insert the code. I tagged you in it.
12:31AM - 07 Jan 21 UTC
@wborn I'd like to suggest that the following code be added to log4j2.xml to set the Chromecast binding to Error level.