Ticket #175 (closed defect: fixed)
CAD log watcher doesn't return most recent entry
| Reported by: | jdalbey | Owned by: | jdalbey |
|---|---|---|---|
| Priority: | High | Milestone: | Sep 2019 Training |
| Component: | Unified Logger | Version: | |
| Severity: | Major | Keywords: | |
| Cc: |
Description
The CAD log watcher component of Unified Logger has a small defect. It assumes that the most recent entry in the CADcomments.log is the last one, but in fact they are ordered by Incident number, not by arrival time. E.g.,
CAD log, Incident #187, Anonymous Trainee: COMMENT FOR INCIDENT 187 CAD log, Incident #201, Anonymous Trainee: MY WHAT BIG EYES YOU HAVE CAD log, Incident #210, Anonymous Trainee: HELLO WORLD
The entry for Incident 201 is the most recent entry, but it isn't at the bottom of the file.
Change History
Note: See
TracTickets for help on using
tickets.

Modified writeToCADlog in Coordinator.java to sort the items by timestamp instead of incident number. Fixed in r465. (Note: no changes to CAD log watcher).