Config: add traces in ini_set()

This commit is contained in:
Benjamin Renard 2023-03-01 19:07:50 +01:00
parent 77deb947db
commit 7166e63032
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -236,8 +236,12 @@ Class Config {
* @return void * @return void
*/ */
public static function ini_set($option, $value) { public static function ini_set($option, $value) {
Log :: trace('Set PHP INI option "%s" to "%s"', $option, $value);
if (ini_set($option, $value) === false) if (ini_set($option, $value) === false)
Log::warning('Fail to set INI options "%s" to "%s"', $option, $value); Log::warning('Fail to set PHP INI option "%s" to "%s"', $option, $value);
Log :: trace(
'PHP INI option "%s" after setting it to "%s": "%s"',
$option, $value, vardump(ini_get($option)));
} }
} }