#1723: Output "increasing logging level" only on one process -----------------------+---------------------------------------------------- Reporter: eschnett | Owner: Type: defect | Status: new Priority: unset | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: -----------------------+----------------------------------------------------
Comment (by knarf):
One solution would be to output this message (produced in CCTKi_SetLogLevel) only on one process. The only usage of this function seems to be from within CCTKi_CommandLineLoggingLevel, which produces this message when a logging level is specified on the command line, and this is executed for every process. We either have to disable the message inside CCTKi_SetLogLevel for processes other than, say, the root process, or we move the message out of that function, and up into CCTKi_CommandLineLoggingLevel, and there only do it on the root process. The effect would currently be the same, but the second option would provide a function which changes the loglevel without producing a message, while the former would always print a message on the root process (even if this might not be wanted). For this reason I propose the second option:
- move the info call out of CCTKi_SetLogLevel, and into CCTKi_CommandLineLoggingLevel - making the info call in CCTKi_CommandLineLoggingLevel only on the root process