Changeset 87c04bf


Ignore:
Timestamp:
Mar 10, 2012 9:51:50 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
9faba9f
Parents:
7bd83f8
Message:
  • configloggging: Fix clearing log overrides
File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/ConfigLoggingHandler.java

    r7bd83f8 r87c04bf  
    7171        boolean shouldSave = false;
    7272       
    73         if (_levels != null || _newLogClass != null) {
     73        if ((_levels != null && _levels.length() > 0) || _newLogClass != null) {
    7474            try {
    7575                Properties props = new Properties();
     
    8686                addFormError("Error updating the log limits - levels not valid");
    8787            }
    88         } else {
     88        } else if (!_context.logManager().getLimits().isEmpty()) {
    8989            _context.logManager().setLimits(null);
     90            shouldSave = true;
    9091            addFormNotice("Log limits cleared");
    9192        }
Note: See TracChangeset for help on using the changeset viewer.