Skip to content
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

[notificationsforfiretv] thing status depending on the last request #88

Merged
merged 2 commits into from
May 5, 2021

Conversation

Trinitus01
Copy link
Contributor

added: set thing status depending on the last request

Inspired by your last commit to the http binding.
What do you think about setting the thing status depending on the last request?
It also do a request without a real notification on binding initialisation.

Signed-off-by: Tom Blum trinitus01@googlemail.com

Signed-off-by: Tom Blum <trinitus01@googlemail.com>
} catch (Exception e) {
logger.warn("Unable to connect: {}", e.getMessage());
} catch (IOException e) {
logger.debug("Unable to send notification: {}", e.getMessage());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
logger.debug("Unable to send notification: {}", e.getMessage());
logger.debug("Unable to send notification: ", e);

Either log the full stack trace here (if it add useful information) or remove the logging. The change of the thing status is logged anyway, so updating the thing status already logs e.getMessage()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@J-N-K J-N-K added the enhancement New feature or request label May 2, 2021
@J-N-K J-N-K added this to the 3.1.2 milestone May 2, 2021
Signed-off-by: Tom Blum <trinitus01@googlemail.com>
@J-N-K J-N-K merged commit 9e7a664 into smarthomej:main May 5, 2021
J-N-K pushed a commit that referenced this pull request May 5, 2021
)

* added: set thing status depending on the last request

Signed-off-by: Tom Blum <trinitus01@googlemail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants