I miss "Installed 'openhab-binding-*" in openhab.log

When uninstalling a binding (via addon.cfg) I see the following log message:

Uninstalled 'openhab-binding

But I think there should also be a corrosponding message when a binding is installed.

This is really unfortunate, because it happened some times that I installed a binding, refreshed
feature:list | grep openhab | grep Started
in karaf, did not see the new binding after a few seconds, removed it again and then saw a line like
Added new thing 'harmonyhub:hub:Wohnzimmer' to inbox.. :neutral_face:

In case I am not missing something here I would consider opening an issue.
https://github.com/eclipse/smarthome/issues here?

Edit… (i just tested this):

I do get an installation event in events.log when using binding = within addons.cfg:

Install from addons.cfg (binding = knx1):

==> openhab.log <==
2017-02-14 21:55:03.938 [INFO ] [nx.internal.connection.KNXConnection] - KNXBinding configuration is not present. Please check your configuration file or if not needed remove the KNX addon.

==> events.log <==
2017-02-14 21:55:03.951 [ExtensionEvent            ] - Extension 'binding-knx1' has been installed.

Uninstall from addons.cfg:

==> openhab.log <==
2017-02-14 21:55:58.401 [INFO ] [core.karaf.internal.FeatureInstaller] - Uninstalled 'openhab-binding-knx1'

==> events.log <==
2017-02-14 21:55:58.404 [ExtensionEvent            ] - Extension 'binding-knx1' has been uninstalled.

Ahhh.
I did not check events.log. Will do in the future. :slight_smile:
But why is there a difference.
I think it should not make any difference weather I install the binding via PaperUI, addons.cfg or whatever.
If an addon is installed it should be logged at the same place. Right?

Weather events.log or openhab.log is the right place, I don’t know.

1 Like

You are right… the openhab.log does not show any installation message… only the events.log.
This is not consistent with the FeatureInstaller message that pops up on binding uninstall.

I guess this issue belongs to openhab-runtime issue tracker rather than eclips smarthome, right? (because of openhab.log)

Another “issue” that I discovered (more a missing feature) is that there is no error when I enter a wrong addon in addon.cfg.
I think there should be a warning or info in the log, too.

Not sure… I would say openhab…

On the other hand: The PaperUI seems that it is using a more “advanced” mechanism (FeatureInstaller ?) for installing addons (it resolves dependencies, etc) while the manual entry in addons.cfg does not follow the same path.

Maybe this (lack of install message) is fine since managing config files if meant for advanced configurations.

I created the issue.

1 Like