mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Merge pull request #1002 from appwrite/feat-new-timestamp-log
Added timestamp
This commit is contained in:
commit
16eb91bf25
1 changed files with 2 additions and 0 deletions
|
|
@ -256,6 +256,8 @@ App::error(function ($error, $utopia, $request, $response, $layout, $project) {
|
||||||
$template = ($route) ? $route->getLabel('error', null) : null;
|
$template = ($route) ? $route->getLabel('error', null) : null;
|
||||||
|
|
||||||
if (php_sapi_name() === 'cli') {
|
if (php_sapi_name() === 'cli') {
|
||||||
|
Console::error('[Error] Timestamp: '.date('c', time()));
|
||||||
|
|
||||||
if($route) {
|
if($route) {
|
||||||
Console::error('[Error] Method: '.$route->getMethod());
|
Console::error('[Error] Method: '.$route->getMethod());
|
||||||
Console::error('[Error] URL: '.$route->getURL());
|
Console::error('[Error] URL: '.$route->getURL());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue