add more strapi shit
This commit is contained in:
parent
18bde0daca
commit
6fa049504b
24 changed files with 595 additions and 62 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { env } from '$env/dynamic/private';
|
||||
import { logger } from '$lib/server/logger';
|
||||
import { Strapi } from '$lib/server/strapi';
|
||||
import type { Handle, HandleServerError } from '@sveltejs/kit';
|
||||
import { randomUUID } from 'crypto';
|
||||
|
|
@ -6,7 +7,7 @@ import { randomUUID } from 'crypto';
|
|||
export const handleError: HandleServerError = async ({ error, event, message, status }) => {
|
||||
const errorId = randomUUID();
|
||||
|
||||
console.error(error, { errorId, event, message, status });
|
||||
logger.error({ error, errorId, event, message, status }, 'Blyat');
|
||||
|
||||
return {
|
||||
message: 'An Internal Error Occurred',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue