-
-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow changing add-on log-levels #1351
Comments
I would rather (re) use the dedicated page to configure bindings and generalize it to all add-ons. |
@ghys @J-N-K I tried having a go at this to make it work in the configuration pages of an add-on. While I can make it work for bindings that come with the distribution, anything else is a problem.
I believe #2058 has a promise to solve this, by bringing it all together in the addon endpoint. This would greatly simplify things. Ideally, I would also like to have the option to switch log levels on installed rule templates in the same way. For this to work, the logger name should also be provided in the rule template. |
openhab/openhab-core#2058 is very high on my list of issues to work on, though probably not before 3.3 as this will probably result in a breaking change and I would prefer not to merge something fundamental like this before the release. You are correct, there is currently no solution for community marketplace bindings. This is easy to solve in the marketplace code once a solution has been found how to add that to the Discourse posts. The JSON 3rd party add-on service already supports providing the package names (if presented by the service). Configurations can be done on the add-on page or on the "Add a thing" page. This should also work for marketplace add-ons. The JSON 3rd party add-on service already provides the URI (if presented by the service). |
If I correctly understand what @ghys proposes is to always show the gear (even on add-ons that don't have any configuration) and then add the log-setting to that page (similar to an always present configuration parameter). It would be nice if it could be set individually for each package. |
@J-N-K That’s indeed also what I was trying to achieve. I am aware you can configure marketplace bindings from the add a thing page. Don’t just focus on bindings. There are other types of add-ons, and the logger level and configuration should ideally be done in the same way. The addons Rest end-point could work for all of them, but looking at the underlying code, it will probably indeed require braking changes. |
It should work out-of-the-box for all distribution add-ons, no matter what type they are:
|
@J-N-K @ghys I'm a bit confused by this. In recent snapshots (3299 in my case), I'm no longer seeing the binding config. All I see is the option to set the log level. It was working in 3292. https://community.openhab.org/t/binding-configuration-missing-in-recent-4-0-0-builds/144118 |
The problem
Add-on logger levels can't be changed from the UI. See #1376. Core support was added in openhab/openhab-core#2772.
Your suggestion
Additional information
This was done by changing
addon-details.vue
I'm pretty sure this is not the correct way to do it, but I have no idea what is the correct way. Also functionality is missing, that's why I didn't make a PR.
The text was updated successfully, but these errors were encountered: