Skip to content
Snippets Groups Projects

No progress to file

Merged Guillaume Pasero requested to merge no_progress_to_file into develop

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 in otb::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 :thumbsup: votes from core developers, no :thumbsdown: 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

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading