Changeset e1385a7


Ignore:
Timestamp:
Feb 23, 2019 5:03:52 PM (18 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
32797dd4
Parents:
9cd90b0
Message:

minor speedup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/util/Log.java

    r9cd90b0 re1385a7  
    188188    /** @since 0.9.20 */
    189189    public boolean shouldDebug() {
    190         return shouldLog(DEBUG);
     190        return DEBUG >= _minPriority;
    191191    }
    192192
    193193    /** @since 0.9.20 */
    194194    public boolean shouldInfo() {
    195         return shouldLog(INFO);
     195        return INFO >= _minPriority;
    196196    }
    197197
    198198    /** @since 0.9.20 */
    199199    public boolean shouldWarn() {
    200         return shouldLog(WARN);
     200        return WARN >= _minPriority;
    201201    }
    202202
    203203    /** @since 0.9.20 */
    204204    public boolean shouldError() {
    205         return shouldLog(ERROR);
     205        return ERROR >= _minPriority;
    206206    }
    207207   
Note: See TracChangeset for help on using the changeset viewer.