Skip to content

Commit

Permalink
LogAppenders: Fix log level validation (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
neteinstein authored and tallnato committed May 12, 2017
1 parent 0eadd5a commit 73e015d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public void disableAppender() {

@Override
public void log(final LOG.PRIORITY type, final Throwable t, final String... logs) {
if (type.ordinal() > mMinLogLevel.ordinal()) {
if (type.ordinal() < mMinLogLevel.ordinal()) {
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void disableAppender() {

@Override
public void log(LOG.PRIORITY type, Throwable t, String... log) {
if (type.ordinal() > mMinLogLevel.ordinal()) {
if (type.ordinal() < mMinLogLevel.ordinal()) {
return;
}
final String logString = getLogString(log);
Expand Down

0 comments on commit 73e015d

Please sign in to comment.