From a4b9db4bb4a9db8edb3c2c8df0ffe1a8d8f1aece Mon Sep 17 00:00:00 2001 From: JoshuaLicense Date: Wed, 10 Jul 2024 11:59:56 +0100 Subject: [PATCH] feat: change log level to `WARN` (#199) --- config/autoload/config.global.php | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/config/autoload/config.global.php b/config/autoload/config.global.php index f66354c894..d1f1b37f7b 100644 --- a/config/autoload/config.global.php +++ b/config/autoload/config.global.php @@ -89,7 +89,15 @@ 'writers' => [ 'full' => [ 'options' => [ - 'stream' => (\Aws\Credentials\CredentialProvider::shouldUseEcs() ? 'php://stdout' : '/var/log/dvsa/olcs-iuweb/iuweb.log') + 'stream' => (\Aws\Credentials\CredentialProvider::shouldUseEcs() ? 'php://stdout' : '/var/log/dvsa/olcs-iuweb/iuweb.log'), + 'filters' => [ + 'priority' => [ + 'name' => 'priority', + 'options' => [ + 'priority' => \Laminas\Log\Logger::WARN + ] + ], + ] ], ] ] @@ -98,7 +106,15 @@ 'writers' => [ 'full' => [ 'options' => [ - 'stream' => (\Aws\Credentials\CredentialProvider::shouldUseEcs() ? 'php://stderr' : '/var/log/dvsa/olcs-iuweb/iuweb.log') + 'stream' => (\Aws\Credentials\CredentialProvider::shouldUseEcs() ? 'php://stderr' : '/var/log/dvsa/olcs-iuweb/iuweb.log'), + 'filters' => [ + 'priority' => [ + 'name' => 'priority', + 'options' => [ + 'priority' => \Laminas\Log\Logger::WARN + ] + ], + ] ], ] ]