Skip to content

[Feature Request] A third verbosity flag for only showing which files get copied over (for the result of only xcp -v) to reduce visual clutter #68

@excited-bore

Description

@excited-bore

Right now there's 3 options to show the copying status

  1. no flag - Just the progress bar
  2. -v - [Info] logs, which shows:
  • Whats get copied from source to destination
  • When worker receive the operation to copy
  • When copying operation is complete
  1. -vv - Both start and finish of important tasks/events in [Info] and everything debug related in [Debug]

I feel like the second option is a little too cluttery for most people who just care of what files get copied to where and how long the operation is taking. Hence I would suggest:

  • To rework the second flag to not show [Info] related events but just shows when files get copied to their destination (without timestamps nor the [Info] box)
Copy "/home/user/test/text.txt" -> "../text.txt"
[########################################################################]

instead of

16:46:12 [INFO] Copying source "text.txt" to "../"
16:46:12 [INFO] Worker[ThreadId(4)]: Copy "/home/user/test/text.txt" -> "../text.txt"
[---------------------------------------------------------------------------------------------------------]         0 B / 30.32 KiB   |   0% |     0 B/s     | 00:00:00 remaining
16:46:12 [INFO] Copy complete

This would also

  • Add a third flag to replace the first degree in verbosity and make the current first (-v) and second degree (-vv) in verbosity, the second (-vv) and third (-vvv) degree in verbosity so to keep the current behaviour when setting the -v flag once.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions