Skip to content

Commit a38dc24

Browse files
committed
Add message to log
1 parent cb46fc2 commit a38dc24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/WebApp/RestPage.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ protected function errorFromThrowable($t) {
7070
if ($this->app->config->has('debug') && $this->app->config->get('debug')) {
7171
$data = \TgUtils\FormatUtils::getTraceLines($t);
7272
}
73+
Log::error('RestPage error: ', \TgUtils\FormatUtils::getTraceLines($t));
7374
return RestResult::error500($data);
7475
}
7576

0 commit comments

Comments
 (0)