mirror of
https://github.com/rclone/rclone.git
synced 2026-09-30 17:55:38 -04:00
cmd/ncdu: fix screen corruption when logging
Before this change if logs were not redirected, logging would corrupt the terminal screen. This commit stores the logs (max ~100 lines) in an array and print them when the program exits.
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f