feat: migration von directus zu payloadcms
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 1m19s
Build & Deploy / 🧪 QA (push) Failing after 3m32s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🏗️ Build (push) Failing after 7m51s
Build & Deploy / ⚡ Lighthouse (push) Has been skipped
Build & Deploy / 🧪 Smoke Test (push) Has been skipped
Build & Deploy / ♿ WCAG (push) Has been skipped
Build & Deploy / 🛡️ Quality Gates (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 10s
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 1m19s
Build & Deploy / 🧪 QA (push) Failing after 3m32s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🏗️ Build (push) Failing after 7m51s
Build & Deploy / ⚡ Lighthouse (push) Has been skipped
Build & Deploy / 🧪 Smoke Test (push) Has been skipped
Build & Deploy / ♿ WCAG (push) Has been skipped
Build & Deploy / 🛡️ Quality Gates (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 10s
This commit is contained in:
@@ -83,6 +83,19 @@ export class GlitchtipErrorReportingService implements ErrorReportingService {
|
||||
|
||||
async captureMessage(message: string, level: ErrorReportingLevel = 'error') {
|
||||
if (!this.options.enabled) return undefined;
|
||||
|
||||
// Send 404s and critical messages straight to Gotify
|
||||
if (
|
||||
this.notifications &&
|
||||
(level === 'error' || level === 'fatal' || message.includes('Route Not Found'))
|
||||
) {
|
||||
await this.notifications.notify({
|
||||
title: level === 'warning' ? '⚠️ Warning Captured' : '🔥 Critical Message Captured',
|
||||
message: message,
|
||||
priority: level === 'warning' ? 5 : 7,
|
||||
});
|
||||
}
|
||||
|
||||
const Sentry = await this.getSentry();
|
||||
return Sentry.captureMessage(message, level as any) as any;
|
||||
}
|
||||
|
||||
@@ -61,8 +61,8 @@ export class PinoLoggerService implements LoggerService {
|
||||
|
||||
child(bindings: Record<string, any>): LoggerService {
|
||||
const childPino = this.logger.child(bindings);
|
||||
const service = new PinoLoggerService();
|
||||
// @ts-expect-error - accessing private member for child creation
|
||||
// Bypass the constructor to avoid creating an orphaned, leaking pino instance
|
||||
const service = Object.create(PinoLoggerService.prototype);
|
||||
service.logger = childPino;
|
||||
return service;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user