mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-24 17:20:06 +00:00
7163898: add isLoggable() check to doLog()
Add the check and return immediately if it's false Reviewed-by: anthony, mchung, sla
This commit is contained in:
parent
56a050e73a
commit
2942df6c93
@ -516,6 +516,9 @@ public class PlatformLogger {
|
||||
}
|
||||
|
||||
void doLog(int level, String msg, Object... params) {
|
||||
if (!isLoggable(level)) {
|
||||
return;
|
||||
}
|
||||
// only pass String objects to the j.u.l.Logger which may
|
||||
// be created by untrusted code
|
||||
int len = (params != null) ? params.length : 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user