Code Context }
$output = date('Y-m-d H:i:s') . ' ' . ucfirst($type) . ': ' . $message . "\n";
return file_put_contents($filename, $output, FILE_APPEND);
$type = 'error'
$message = '[SocketException] php_network_getaddresses: getaddrinfo failed: Name or service not known
#0 /var/www/mtgplaytest.com/public_html/lib/Cake/Network/CakeSocket.php(193): CakeSocket->connect()
#1 /var/www/mtgplaytest.com/public_html/lib/Cake/Network/Http/HttpSocket.php(362): CakeSocket->write('GET /x2/phl.asm...')
#2 /var/www/mtgplaytest.com/public_html/lib/Cake/Network/Http/HttpSocket.php(449): HttpSocket->request(Array)
#3 /var/www/mtgplaytest.com/public_html/app/Controller/Component/TcgComponent.php(72): HttpSocket->get('http://partner....', Array)
#4 /var/www/mtgplaytest.com/public_html/app/Controller/Component/TcgComponent.php(22): TcgComponent->makeRequest(Array)
#5 /var/www/mtgplaytest.com/public_html/app/Controller/CardsController.php(353): TcgComponent->getCard('Iron Myr', 'Scars of Mirrod...')
#6 [internal function]: CardsController->view('2434', '25506')
#7 /var/www/mtgplaytest.com/public_html/lib/Cake/Controller/Controller.php(485): ReflectionMethod->invokeArgs(Object(CardsController), Array)
#8 /var/www/mtgplaytest.com/public_html/lib/Cake/Routing/Dispatcher.php(186): Controller->invokeAction(Object(CakeRequest))
#9 /var/www/mtgplaytest.com/public_html/lib/Cake/Routing/Dispatcher.php(161): Dispatcher->_invoke(Object(CardsController), Object(CakeRequest), Object(CakeResponse))
#10 /var/www/mtgplaytest.com/public_html/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#11 {main}'
$debugTypes = array(
(int) 0 => 'notice',
(int) 1 => 'info',
(int) 2 => 'debug'
)
$filename = '/var/www/mtgplaytest.com/public_html/app/tmp/logs/error.log'
$output = '2024-08-29 18:31:31 Error: [SocketException] php_network_getaddresses: getaddrinfo failed: Name or service not known
#0 /var/www/mtgplaytest.com/public_html/lib/Cake/Network/CakeSocket.php(193): CakeSocket->connect()
#1 /var/www/mtgplaytest.com/public_html/lib/Cake/Network/Http/HttpSocket.php(362): CakeSocket->write('GET /x2/phl.asm...')
#2 /var/www/mtgplaytest.com/public_html/lib/Cake/Network/Http/HttpSocket.php(449): HttpSocket->request(Array)
#3 /var/www/mtgplaytest.com/public_html/app/Controller/Component/TcgComponent.php(72): HttpSocket->get('http://partner....', Array)
#4 /var/www/mtgplaytest.com/public_html/app/Controller/Component/TcgComponent.php(22): TcgComponent->makeRequest(Array)
#5 /var/www/mtgplaytest.com/public_html/app/Controller/CardsController.php(353): TcgComponent->getCard('Iron Myr', 'Scars of Mirrod...')
#6 [internal function]: CardsController->view('2434', '25506')
#7 /var/www/mtgplaytest.com/public_html/lib/Cake/Controller/Controller.php(485): ReflectionMethod->invokeArgs(Object(CardsController), Array)
#8 /var/www/mtgplaytest.com/public_html/lib/Cake/Routing/Dispatcher.php(186): Controller->invokeAction(Object(CakeRequest))
#9 /var/www/mtgplaytest.com/public_html/lib/Cake/Routing/Dispatcher.php(161): Dispatcher->_invoke(Object(CardsController), Object(CakeRequest), Object(CakeResponse))
#10 /var/www/mtgplaytest.com/public_html/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#11 {main}
'
file_put_contents - [internal], line ??
FileLog::write() - CORE/Cake/Log/Engine/FileLog.php, line 87
CakeLog::write() - CORE/Cake/Log/CakeLog.php, line 443
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 118
[main] - [internal], line ??