Skip to content

Commit

Permalink
Avoid verbose opcache logging
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Apr 18, 2023
1 parent 22b184d commit 82464ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Psalm/Internal/Fork/PsalmRestarter.php
Expand Up @@ -32,6 +32,7 @@ class PsalmRestarter extends XdebugHandler
'jit_buffer_size' => 512 * 1024 * 1024,
'optimization_level' => '0x7FFEBFFF',
'preload' => '',
'log_verbosity_level' => 0
];

private bool $required = false;
Expand Down Expand Up @@ -72,6 +73,7 @@ protected function requiresRestart($default): bool
$opcache_settings = [
'enable_cli' => in_array(ini_get('opcache.enable_cli'), ['1', 'true', true, 1]),
'jit' => (int) ini_get('opcache.jit'),
'log_verbosity_level' => (int) ini_get('opcache.log_verbosity_level'),
'optimization_level' => (string) ini_get('opcache.optimization_level'),
'preload' => (string) ini_get('opcache.preload'),
'jit_buffer_size' => self::toBytes(ini_get('opcache.jit_buffer_size')),
Expand Down Expand Up @@ -148,6 +150,7 @@ protected function restart($command): void
'-dopcache.jit=1205',
'-dopcache.optimization_level=0x7FFEBFFF',
'-dopcache.preload=',
'-dopcache.log_verbosity_level=0'
];
}

Expand Down

0 comments on commit 82464ea

Please sign in to comment.