chg: Set BrowscapPHP logging from default DEBUG to INFO

pull/9598/head
Bradley Logan 2024-02-28 15:22:14 -08:00 committed by GitHub
parent e93beba4d3
commit ee986fc2fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,8 @@ class UserLoginProfile extends AppModel
private function browscapGetBrowser()
{
$logger = new \Monolog\Logger('name');
$streamHandler = new \Monolog\Handler\StreamHandler('php://stderr', \Monolog\Logger::INFO);
$logger->pushHandler($streamHandler);
if (function_exists('apcu_fetch')) {
App::uses('ApcuCacheTool', 'Tools');