Skip to content
Snippets Groups Projects
Commit 04a224aa authored by Guilherme Arthur Gerônimo's avatar Guilherme Arthur Gerônimo
Browse files

Return error to user

parent cf9a3f8b
Branches main
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@ abstract class Logger
public static function exception(\Exception $e) {
$message = get_class($e) . "> {$e->getFile()}:{$e->getLine()}> {$e->getMessage()}\n";
$message .= $e->getTraceAsString()."\n";
if ( ! isset( $_ENV['DISABLE_USERS_LOG_RETURN'] ) ) echo $e->getMessage()."\n";
self::_log($message, LOG_ERR, true);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment