Skip to content

Conversation

@ccutrer
Copy link
Collaborator

@ccutrer ccutrer commented Apr 14, 2019

Pull Request Checklist

Please confirm that you've done the following when opening a new pull request:

  • For fixes and other improvements, please reference the GitHub issue that your change addresses.
  • For fixes, optimizations and new features, please add an entry to the CHANGES.md file.
  • Run mvn compile before committing, so that the auto-code formatter will format your changes consistently with the rest of the project.

logger.debug(
String.format(
"Sending data [%s]:%n%s",
ctx.channel().remoteAddress().toString(), msg.toString(StandardCharsets.UTF_8)));
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is unnecessarily creating objects even when debug logging is off.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point. Pushed an update.

don't hexdump plaintext messages, and log them at DEBUG level so that
you don't have to sift through all of the encrypted stuff to figure out
what's going on at the HAP level
Copy link
Collaborator

@andylintner andylintner left a comment

Choose a reason for hiding this comment

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

LGTM

@ccutrer ccutrer merged commit d2b2f4f into hap-java:master Apr 15, 2019
@ccutrer ccutrer deleted the logging branch October 18, 2022 15:53
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.

2 participants