Merge tag '2023.9.2' into merge-upstream
This commit is contained in:
commit
e2c9ed355b
144 changed files with 2519 additions and 1660 deletions
|
@ -189,7 +189,7 @@ export class ClientServerService {
|
|||
// Authenticate
|
||||
fastify.addHook('onRequest', async (request, reply) => {
|
||||
// %71ueueとかでリクエストされたら困るため
|
||||
const url = decodeURI(request.url);
|
||||
const url = decodeURI(request.routerPath);
|
||||
if (url === bullBoardPath || url.startsWith(bullBoardPath + '/')) {
|
||||
const token = request.cookies.token;
|
||||
if (token == null) {
|
||||
|
@ -777,8 +777,8 @@ export class ClientServerService {
|
|||
|
||||
fastify.setErrorHandler(async (error, request, reply) => {
|
||||
const errId = randomUUID();
|
||||
this.clientLoggerService.logger.error(`Internal error occurred in ${request.routerPath}: ${error.message}`, {
|
||||
path: request.routerPath,
|
||||
this.clientLoggerService.logger.error(`Internal error occurred in ${request.routeOptions.url}: ${error.message}`, {
|
||||
path: request.routeOptions.url,
|
||||
params: request.params,
|
||||
query: request.query,
|
||||
code: error.name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue