Changeset 16905 in josm for trunk


Ignore:
Timestamp:
2020-08-23T11:33:30+02:00 (4 years ago)
Author:
simon04
Message:

fix #19696 - Status Report: add relative timestamp to last errors/warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Logging.java

    r15791 r16905  
    5151    private static final Logger LOGGER = Logger.getAnonymousLogger();
    5252    private static final RememberWarningHandler WARNINGS = new RememberWarningHandler();
     53    private static final Stopwatch startup = Stopwatch.createStarted();
    5354
    5455    /**
     
    491492            }
    492493
    493             String msg = getPrefix(record) + record.getMessage();
     494            String msg = String.format("%09.3f %s%s", startup.elapsed() / 1000., getPrefix(record), record.getMessage());
    494495
    495496            // Only remember first line of message
Note: See TracChangeset for help on using the changeset viewer.