Skip to content

Commit

Permalink
SLF4J-165 Handling of unknown (custom) priorities is different than i…
Browse files Browse the repository at this point in the history
…n log4j (throwing an IllegalStateException than using the effective level of the given Priority / Level / Category)
  • Loading branch information
DavesMan committed Jan 24, 2022
1 parent 19e36ff commit 2aec4d8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ private int priorityToLevelInt(Priority p) {
case Priority.FATAL_INT:
return LocationAwareLogger.ERROR_INT;
default:
throw new IllegalStateException("Unknown Priority " + p);
slf4jLogger.warn("Unknown Priority " + p);
return LocationAwareLogger.TRACE_INT;
}
}

Expand Down

0 comments on commit 2aec4d8

Please sign in to comment.