1
0
Fork 0
mirror of synced 2024-05-21 05:02:37 +12:00

Merge pull request #1002 from appwrite/feat-new-timestamp-log

Added timestamp
This commit is contained in:
Eldad A. Fux 2021-03-23 23:15:37 +02:00 committed by GitHub
commit 16eb91bf25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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());