1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00

Added timestamp

This commit is contained in:
Eldad Fux 2021-03-19 00:08:19 +02:00
parent ef07db1561
commit 11053b0b60

View file

@ -256,6 +256,8 @@ App::error(function ($error, $utopia, $request, $response, $layout, $project) {
$template = ($route) ? $route->getLabel('error', null) : null;
if (php_sapi_name() === 'cli') {
Console::error('[Error] Timestamp: '.date('c', time()));
if($route) {
Console::error('[Error] Method: '.$route->getMethod());
Console::error('[Error] URL: '.$route->getURL());