Log preflight errors, and use module-specific logger

Created on 3 September 2024, 4 months ago
Updated 17 September 2024, 3 months ago

Problem/Motivation

In ✨ Log errors caught by HttpController Fixed , we started logging errors. However, preflight errors are not currently being logged.

For example, there are some test failures right now in πŸ“Œ Add types for properties and arguments Fixed , but because these errors occur in the preflight check, they don't get logged,

For example:

Error: Typed property Drupal\jsonrpc\Object\Response::$resultSchema must not be accessed before initialization in Drupal\jsonrpc\Object\Response->getResultSchema() (line 174 of /var/www/html/web/modules/contrib/jsonrpc/src/Object/Response.php).

Let's add logging for these, too, so that admins can be alerted if requests are failing.

In addition, the module is currently logging to the php channel. Let's use a jsonrpc channel instead to make it easier to filter the logs generated by this module.

✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡―πŸ‡΅Japan ptmkenny

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024