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-204] Fix short host name to be first instead of last part #198

Merged
merged 1 commit into from
Oct 3, 2018

Conversation

dmlloyd
Copy link
Member

@dmlloyd dmlloyd commented Oct 2, 2018

No description provided.

Copy link
Member

@jamezp jamezp left a comment

Choose a reason for hiding this comment

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

I can probably come up with a fix for this if you don't have time. It would probably be a pretty easy fix and I could make a quick test to make sure it doesn't get messed up in the future :)

return record.getHostName();
}
};
return hostnameFormatStep(leftJustify, minimumWidth, truncateBeginning, maximumWidth, true);
Copy link
Member

Choose a reason for hiding this comment

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

This wouldn't take the precision into account so if the other method would return a fully qualified host name, this would always return that instead of a substring of it.

@jamezp jamezp merged commit 48ad6c5 into jboss-logging:master Oct 3, 2018
@dmlloyd dmlloyd deleted the logmgr-204 branch October 4, 2018 14:38
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