delay reporting loglevel change until after command line option parsing

Create issue
Issue #2323 resolved
Roland Haas created an issue

Currently Cactus reports changes of the loglevel via the -L command line option while parsing the command line. At this time, redirection of stdout and stderr has not yet been set up leading to every MPI rank reporting the change. For many (thousands) of ranks used in large simulations this can lead to thousands of lines at the beginning of a log file reading “Increasing log level from 0 to 3” which is quite distracting.

Pull request:

delays reporting (but not changing) the log level (and warn level and error level) until after redirection has happened, thus avoiding the issue.

Comments (2)

  1. Log in to comment