mrjackwills / oxker

A simple tui to view & control docker containers
MIT License
727 stars 24 forks source link

[BUG] Duplicate log entries #11

Closed mrjackwills closed 1 year ago

mrjackwills commented 2 years ago

Describe the bug Have, on occasion, seen duplicate log entries in the log panel

To Reproduce So far difficult to replicate

Expected behavior Should only display each log entry once

Fixes Should always record timestamp with each log entry, maybe in a tuple (timestamp, log_entry), and then only insert into the log Vec (or ideally a HashSet), if the (timestamp, log_entry) is unique. Would need to change the way the -t arg is interpreted in order to display, or not display, the timestamp