-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[nanoleaf] reduce layout logs, fix wrong type detection, add discovery props #7180
Conversation
…y props - Reduce layout logging by manual triggering - Add more test for inconsistent layout response from device - Fix wrong type detection for canvas - Fix rediscovery end handling (could have put controller offline) - Add model/vendor properties automatically if things configured manually in a static things file - Some code cleanup Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Travis tests were successfulHey @stefan-hoehn, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@Nullable | ||
Layout layout = controllerInfo.getPanelLayout().getLayout(); | ||
String layoutView = (layout != null) ? layout.getLayoutView() : ""; | ||
logger.info("Panel layout and ids for controller {} \n{}", thing.getUID(), layoutView); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove this logging statement, or set to debug
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case it is exactly the intention to have it on "info" as it is the standard logging setting (most OH users don't know how to change the log setting in karaf as it is rather advanced). It used to be info already before but was logged very often and filled the log. Now it is only logged upon request if needed intentionally as information for a standard user which is usually only done when you change the layout of your canvas. Hope that clarifies it :-)
Thanks, @cpmeister 👍 |
…y props (openhab#7180) - Reduce layout logging by manual triggering - Add more test for inconsistent layout response from device - Fix wrong type detection for canvas - Fix rediscovery end handling (could have put controller offline) - Add model/vendor properties automatically if things configured manually in a static things file - Some code cleanup Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de> Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de> Signed-off-by: leluna <hengrui.jiang@googlemail.com>
…y props (openhab#7180) - Reduce layout logging by manual triggering - Add more test for inconsistent layout response from device - Fix wrong type detection for canvas - Fix rediscovery end handling (could have put controller offline) - Add model/vendor properties automatically if things configured manually in a static things file - Some code cleanup Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de> Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de> Signed-off-by: Hans-Reiner Hoffmann <hans-reiner.hoffmann@gmx.de>
…y props (openhab#7180) - Reduce layout logging by manual triggering - Add more test for inconsistent layout response from device - Fix wrong type detection for canvas - Fix rediscovery end handling (could have put controller offline) - Add model/vendor properties automatically if things configured manually in a static things file - Some code cleanup Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de> Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
…y props (openhab#7180) - Reduce layout logging by manual triggering - Add more test for inconsistent layout response from device - Fix wrong type detection for canvas - Fix rediscovery end handling (could have put controller offline) - Add model/vendor properties automatically if things configured manually in a static things file - Some code cleanup Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de> Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
…y props (openhab#7180) - Reduce layout logging by manual triggering - Add more test for inconsistent layout response from device - Fix wrong type detection for canvas - Fix rediscovery end handling (could have put controller offline) - Add model/vendor properties automatically if things configured manually in a static things file - Some code cleanup Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de> Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
…y props (openhab#7180) - Reduce layout logging by manual triggering - Add more test for inconsistent layout response from device - Fix wrong type detection for canvas - Fix rediscovery end handling (could have put controller offline) - Add model/vendor properties automatically if things configured manually in a static things file - Some code cleanup Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de> Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
…y props (openhab#7180) - Reduce layout logging by manual triggering - Add more test for inconsistent layout response from device - Fix wrong type detection for canvas - Fix rediscovery end handling (could have put controller offline) - Add model/vendor properties automatically if things configured manually in a static things file - Some code cleanup Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de> Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
…y props (openhab#7180) - Reduce layout logging by manual triggering - Add more test for inconsistent layout response from device - Fix wrong type detection for canvas - Fix rediscovery end handling (could have put controller offline) - Add model/vendor properties automatically if things configured manually in a static things file - Some code cleanup Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de> Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
…y props (openhab#7180) - Reduce layout logging by manual triggering - Add more test for inconsistent layout response from device - Fix wrong type detection for canvas - Fix rediscovery end handling (could have put controller offline) - Add model/vendor properties automatically if things configured manually in a static things file - Some code cleanup Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de> Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
…y props (openhab#7180) - Reduce layout logging by manual triggering - Add more test for inconsistent layout response from device - Fix wrong type detection for canvas - Fix rediscovery end handling (could have put controller offline) - Add model/vendor properties automatically if things configured manually in a static things file - Some code cleanup Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de> Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de> Signed-off-by: Daan Meijer <daan@studioseptember.nl>
…y props (openhab#7180) - Reduce layout logging by manual triggering - Add more test for inconsistent layout response from device - Fix wrong type detection for canvas - Fix rediscovery end handling (could have put controller offline) - Add model/vendor properties automatically if things configured manually in a static things file - Some code cleanup Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de> Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Signed-off-by: Stefan Höhn stefan@andreaundstefanhoehn.de