No progress to file
Summary
All progress logs are filtered when cout
is not interactive.
Rationale
This is the implementation of issue #1780 (closed).
Implementation Details
Classes and files
In a nutshell:
- a wrapping of
isatty()
has been added inotb::System
, with an implementation for Windows - the 3 watchers have been modified to filter progress messages on non-interactive cout:
StandardFilterWatcher
StandardOneLineFilterWatcher
StandardWriterWatcher
The messages are only print at the end of processing.
Additional notes
TODO:
- check if there is a mechanism to dump the content of watcher after a processing is interrupted.
Copyright
The copyright owner is CNES and has signed the ORFEO ToolBox Contributor License Agreement.
Check before merging:
- All discussions are resolved
- At least 2
👍 votes from core developers, no👎 vote. - The feature branch is (reasonably) up-to-date with the base branch
- Dashboard is green
- Copyright owner has signed the ORFEO ToolBox Contributor License Agreement
Edited by Guillaume Pasero