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

[LOGMGR-104] Use better encoding methods for the syslog handler. #55

Closed
wants to merge 1 commit into from

Conversation

jamezp
Copy link
Member

@jamezp jamezp commented May 14, 2014

No description provided.


public static int getUtf8LengthOf(final int c, final boolean escapeEnabled) {
if (escapeEnabled && c < 0x20) {
return 4;
Copy link
Member

Choose a reason for hiding this comment

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

This is not right and violates the RFC, as discussed on IRC yesterday.

Copy link
Member Author

Choose a reason for hiding this comment

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

The issue is if we don't escape or replace at LF then the rsyslog treats it as a separate message, but doesn't include the same header information.

@jamezp
Copy link
Member Author

jamezp commented Sep 3, 2014

Merged

@jamezp jamezp closed this Sep 3, 2014
@jamezp jamezp deleted the LOGMGR-104-c branch September 4, 2014 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants