forked from I2P_Developers/i2p.i2p
minor speedup
This commit is contained in:
@ -187,22 +187,22 @@ public class Log {
|
|||||||
|
|
||||||
/** @since 0.9.20 */
|
/** @since 0.9.20 */
|
||||||
public boolean shouldDebug() {
|
public boolean shouldDebug() {
|
||||||
return shouldLog(DEBUG);
|
return DEBUG >= _minPriority;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @since 0.9.20 */
|
/** @since 0.9.20 */
|
||||||
public boolean shouldInfo() {
|
public boolean shouldInfo() {
|
||||||
return shouldLog(INFO);
|
return INFO >= _minPriority;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @since 0.9.20 */
|
/** @since 0.9.20 */
|
||||||
public boolean shouldWarn() {
|
public boolean shouldWarn() {
|
||||||
return shouldLog(WARN);
|
return WARN >= _minPriority;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @since 0.9.20 */
|
/** @since 0.9.20 */
|
||||||
public boolean shouldError() {
|
public boolean shouldError() {
|
||||||
return shouldLog(ERROR);
|
return ERROR >= _minPriority;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user