Loading large logs of a service takes forever
Describe the bug When selecting a Service to view a large log, loading of the log takes a very very long time. It sometimes takes several minutes to show anything.
In contrast, doing docker logs -t --tail 1500 mycontainer 2>&1 for the container of the service, takes about 1 second to print out all 1500 lines.
To Reproduce Steps to reproduce the behavior:
- Run a service that emits a million lines to the log
- Select the service
- Wait
- Growl, go to github.com/jesseduffield/lazydocker and file an issue
Expected behaviour Logs should load immidiately
I just noticed that some services actually doens't load at all. I suspect the "refresh" interval time is shorter than the time it takes to load the log.
FWIW this is my ~/.config/lazydocker/config.yaml:
gui:
returnImmediately: true
expandFocusedSidePanel: true
logs:
timestamps: true
tail: 1000
Also noticed that logs sometimes don't load at all. I have upgraded lazydocker to current version (0.23.1), no change. I can see the logs using docker logs <service> no problem.
EDIT: actually my problem was related to this issue: https://github.com/jesseduffield/lazydocker/issues/391
Because those were older containers which didn't print anything in the last hour. So when I set in config the logs: since: '', I can see all the logs.
Can confirm that large logs aren't loading properly. I'm just using docker logs as a workaround for now. I have a container with a ~2GB file that logs pretty frequently and lazydocker just displays a blank screen.