Changeset d1617dd


Ignore:
Timestamp:
Feb 28, 2019 4:55:16 PM (17 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
82d1874
Parents:
21c7a341
Message:

Console: Fix router logs not shown if first msg is a dup

File:
1 edited

Legend:

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

    r21c7a341 rd1617dd  
    127127        // for (int i = msgs.size() - 1; i >= 0; i--) {
    128128        // oldest first
     129        boolean displayed = false;
    129130        for (int i = 0; i < msgs.size(); i++) {
    130131            String msg = msgs.get(i);
     
    132133            //if (i == 0 && msg.contains("&darr;"))
    133134            // don't display the dup message if it is first
    134             if (i == 0 && msg.contains("&uarr;"))
    135                 break;
     135            if (!displayed && msg.contains("&uarr;"))
     136                continue;
     137            displayed = true;
    136138            msg = msg.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;");
    137139            //msg = msg.replace("&amp;darr;", "&darr;");  // hack - undo the damage (LogWriter)
Note: See TracChangeset for help on using the changeset viewer.