Org.openhab.binding.http Stream closed warning

I am using the http Binding to fetch values from a local weather station (with http cache). Even if I have set the log level to error

log:set error org.openhab.binding.http

I got lots of warnings - seems as for every refresh and value:

15:15:03.069 [WARN ] [he.commons.httpclient.HttpMethodBase] - Stream closed
15:15:03.683 [WARN ] [he.commons.httpclient.HttpMethodBase] - Stream closed
15:15:04.298 [WARN ] [he.commons.httpclient.HttpMethodBase] - Stream closed
15:15:04.919 [WARN ] [he.commons.httpclient.HttpMethodBase] - Stream closed
15:15:05.526 [WARN ] [he.commons.httpclient.HttpMethodBase] - Stream closed
15:15:06.131 [WARN ] [he.commons.httpclient.HttpMethodBase] - Stream closed
15:15:06.743 [WARN ] [he.commons.httpclient.HttpMethodBase] - Stream closed
15:15:07.352 [WARN ] [he.commons.httpclient.HttpMethodBase] - Stream closed

Any idea why this warning appears or why the log level seems to be ignored?

IMHO the level level desired has to be in capitals, like ERROR
You can check what is actually set by calling log:set

No, same behaviour when I use the version in capitals:

log:set OFF org.openhab.binding.http


16:37:57.820 [WARN ] [he.commons.httpclient.HttpMethodBase] - Stream closed
16:37:58.428 [WARN ] [he.commons.httpclient.HttpMethodBase] - Stream closed
16:37:59.037 [WARN ] [he.commons.httpclient.HttpMethodBase] - Stream closed
16:37:59.651 [WARN ] [he.commons.httpclient.HttpMethodBase] - Stream closed
16:38:00.260 [WARN ] [he.commons.httpclient.HttpMethodBase] - Stream closed 

seems as the console is also checking the possible values, as when I use a wrong value an error is returned

log:set OFF org.openhab.binding.http
Error executing command: No enum constant org.apache.karaf.log.core.Level.OFF

btw: even wondering why off is not a valid level, as it is listed in the documentation:

it’s in karaf 4.1.2 :slight_smile:
by the way: check if the log:set should be at the io bundle

you set the level for the wrong package. the error is coming from ???he.commons.httpclient.HttpMethodBase, not org.openhab.binding.http.

you might need to search the ESH repo to find this class to learn the first part of the package name.

Thanks for the hint, it was

log:set error org.apache.commons.httpclient

I also checked in trace mode and seems as a setting of the weather station server

18:10:03.397 [TRACE] [he.commons.httpclient.HttpMethodBase] - enter HttpMethodBase.canResponseHaveBody(int)
18:10:03.943 [DEBUG] [he.commons.httpclient.HttpMethodBase] - Should NOT close connection in response to directive: Keep-Alive
18:10:03.945 [TRACE] [he.commons.httpclient.HttpConnection] - enter HttpConnection.isResponseAvailable()
18:10:03.947 [WARN ] [he.commons.httpclient.HttpMethodBase] - Stream closed
18:10:03.948 [TRACE] [he.commons.httpclient.HttpConnection] - enter HttpConnection.close()
18:10:03.950 [TRACE] [he.commons.httpclient.HttpConnection] - enter HttpConnection.closeSockedAndStreams()
18:10:03.952 [TRACE] [he.commons.httpclient.HttpConnection] - enter HttpConnection.releaseConnection()