Skip to content

Commit

Permalink
fix from PR feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
  • Loading branch information
nknize committed Mar 19, 2021
1 parent d4cb957 commit 6ee39d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ public class OpenSearchJsonLayout extends AbstractStringLayout {

private final PatternLayout patternLayout;

protected OpenSearchJsonLayout(String typeName, Charset charset, String[] esmessagefields) {
protected OpenSearchJsonLayout(String typeName, Charset charset, String[] opensearchMessageFields) {
super(charset);
this.patternLayout = PatternLayout.newBuilder()
.withPattern(pattern(typeName, esmessagefields))
.withPattern(pattern(typeName, opensearchMessageFields))
.withAlwaysWriteExceptions(false)
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
* Pattern converter to populate ESMessageField in a pattern.
* It will only populate these if the event have message of type <code>OpenSearchLogMessage</code>.
*/
@Plugin(category = PatternConverter.CATEGORY, name = "ESMessageField")
@ConverterKeys({"ESMessageField"})
@Plugin(category = PatternConverter.CATEGORY, name = "OpenSearchMessageField")
@ConverterKeys({"OpenSearchMessageField"})
public final class OpenSearchMessageFieldConverter extends LogEventPatternConverter {

private String key;
Expand Down

0 comments on commit 6ee39d3

Please sign in to comment.