Skip to content

Can't avoid logging progress to console #49

@ltbrizolara

Description

@ltbrizolara

Hi,

Right now it's not possible to avoid writing the progress to the console - It takes many lines. Like:

Writing Storage Unit Label bytes to the file
Creating & writing visible records of the DLIS...  0% (0 of 69085) |                      | Elapsed Time: 0:00:00 ETA:  --:--:--
  6% (4373 of 69085) |#                  | Elapsed Time: 0:00:00 ETA:   0:00:00
 13% (9620 of 69085) |##                 | Elapsed Time: 0:00:00 ETA:   0:00:00
 21% (14867 of 69085) |###               | Elapsed Time: 0:00:00 ETA:   0:00:00
 29% (20114 of 69085) |#####             | Elapsed Time: 0:00:00 ETA:   0:00:00
 35% (24486 of 69085) |######            | Elapsed Time: 0:00:00 ETA:   0:00:00
 43% (29733 of 69085) |#######           | Elapsed Time: 0:00:00 ETA:   0:00:00
 50% (34980 of 69085) |#########         | Elapsed Time: 0:00:00 ETA:   0:00:00
 58% (40227 of 69085) |##########        | Elapsed Time: 0:00:00 ETA:   0:00:00
 65% (45474 of 69085) |###########       | Elapsed Time: 0:00:00 ETA:   0:00:00
 73% (50721 of 69085) |#############     | Elapsed Time: 0:00:00 ETA:   0:00:00
 81% (55968 of 69085) |##############    | Elapsed Time: 0:00:00 ETA:   0:00:00
 88% (61215 of 69085) |###############   | Elapsed Time: 0:00:00 ETA:   0:00:00
 96% (66462 of 69085) |################# | Elapsed Time: 0:00:00 ETA:   0:00:00
100% (69085 of 69085) |##################| Elapsed Time: 0:00:00 Time:  0:00:00

69085 written to DLIS file at path\to\my\file.dlis
Total file size is 57028300 bytes

It is being written because of this for in write.py's write_logical_records:
for lr in progressbar(logical_records, max_value=len(logical_records)):

If we could opt out the progressbar we would save 15 lines in the console (and in red...). The messages above and below these seem sufficient to me... What do you think?

Thanks!

Tiago

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions