[php-src] PR #13256: Let php-fpm -tt dump info regardless of log_level
| From: | dzuelke | Date: | Fri, 26 Jan 2024 20:08:35 +0000 |
| Subject: | [php-src] PR #13256: Let php-fpm -tt dump info regardless of log_level | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24906@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13256
Author: dzuelke
When using
php-fpm -tt to dump the configuration, and the input config has a
log_level of warning or error, then nothing will be printed.
This change temporarily changes the zlog level to notice, if necessary, to allow the
output to be printed.
Notably, the "configuration file %s test is successful" output is not affected by this; it
still obeys the configured log_level.
Can't be tested, however, as tester.inc's log helpers do not actually seem to
work with the "invert" flag passed in.
N.b.: the dump probably really should a) not occur with any log decoration applied, and b) be
printed to stdout like most other programs do it...