「view this page in B3 βῆτα server」

Revisions №59344

branch: master 「№59344」
Commited by: Rocco Moretti
GitHub commit link: 「1a87dffaddea82b7」 「№2083」
Difference from previous tested commit:  code diff
Commit date: 2017-03-10 12:29:09

Merge pull request #2083 from RosettaCommons/roccomoretti/no_color_log_file Add suppression flag to CSI Sequence printing. Rosetta printing color highlighting of tracer output is nice ... if you're on a terminal which supports it. If you're redirecting to a log file, or on a terminal without support, it can produce rather ugly control code sequences in the display (e.g. '^[[0m') There's some existing autodetection logic to catch when you're redirecting a file, but it's not always foolproof. This pull request reorganizes things and adds a new option `-out:no_color` which suppressed the printing of the CSI sequence codes. Additionally, the `-out::mpi_tracer_to_file` option also toggles the same CSI suppression setting, to suppress the control code printing in the MPI logs, even when the main output is still directed to the terminal. As an added benefit, I've removed some now-unused logic from tracer output, which should greatly speed up printing to tracers. One catch is that, due to the static initialization order fiasco, I needed to convert the utility::CSI_* entries from static objects to functions which return the appropriate objects. MPI integration tests expected to change, as control codes are now being suppressed.

...