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

Improve Logging & Small fixes #119

Merged
merged 20 commits into from
Dec 19, 2019
Merged

Improve Logging & Small fixes #119

merged 20 commits into from
Dec 19, 2019

Conversation

gitseti
Copy link
Contributor

@gitseti gitseti commented Dec 18, 2019

resolve #110
Motivation
The previous logging was a bit confusing because there was no convention on what is written to the different log levels. Therefore, this PR updates to the most recent tinylog version and conventionalises log levels.

Changes

  • Update TinyLog to newest version and refactor code accordingly
  • Also log publish and subscribe command to logfile
  • Adjust logfile formatting
  • Rename property for logfile log level from "debug.level.shell" to "logfile.level"
  • Change all toString() implementations of commands to skip null values
  • Default WillQualityOfServiceLevel is now 0
  • fix sub -s printing the same received publish more than once


// If the currently active shell client gets disconnected from the server prompt the user to enter
if (contextEqualsShellContext(context)) {
Logger.error(MqttUtils.getRootCause(cause).getMessage());
Logger.error(cause, Throwables.getRootCause(cause).getMessage());
Copy link
Member

Choose a reason for hiding this comment

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

Is this intended to pass cause and then the message?

@gitseti gitseti merged commit db28083 into develop Dec 19, 2019
@gitseti gitseti deleted the fix/small-fixes branch December 19, 2019 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove null Statements from logging output
2 participants