Skip to content

Commit

Permalink
Use getFormattedMessage instead of getFormat
Browse files Browse the repository at this point in the history
Under certain circumstances, getFormat may return the empty string.
Using getFormattedMessage ensures that 'Validating minecraft' will
always be detected.
  • Loading branch information
Aaron1011 committed Nov 11, 2017
1 parent 5a9add8 commit 899fc9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ protected MixinAppender(String name, Filter filter, Layout<? extends Serializabl

@Override
public void append(LogEvent event) {
if (event.getLevel() == Level.DEBUG && "Validating minecraft".equals(event.getMessage().getFormat())) {
if (event.getLevel() == Level.DEBUG && "Validating minecraft".equals(event.getMessage().getFormattedMessage())) {
// transition to INIT
MixinEnvironment.gotoPhase(Phase.INIT);

Expand Down

0 comments on commit 899fc9f

Please sign in to comment.