mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-22 05:57:20 +00:00
- Updated `AbilityGuard` to utilize `TransactionLogger` for logging execution time and errors. - Enhanced `ResponseInterceptor` to include transaction metadata in logs. - Modified `QueryAuthGuard`, `ValidateQueryAppGuard`, and `ValidateQuerySourceGuard` to log completion times and transaction IDs. - Introduced `TransactionLogger` service for structured logging with transaction context. - Added transaction ID and route information to request context in `RequestContextMiddleware`. - Updated `JwtStrategy` to log validation completion times. - Refactored logging configuration in `AppModuleLoader` to support pretty printing in non-production environments. - Removed console logs in favor of structured logging for better traceability.
23 lines
715 B
TypeScript
23 lines
715 B
TypeScript
export class QueryError extends Error {
|
|
data: Record<string, unknown>;
|
|
description: any;
|
|
metadata?: unknown;
|
|
constructor(message: string | undefined, description: unknown, data: Record<string, unknown>, metadata?: unknown) {
|
|
super(message);
|
|
this.name = this.constructor.name;
|
|
this.data = data;
|
|
this.description = description;
|
|
this.metadata = metadata;
|
|
}
|
|
}
|
|
|
|
export class OAuthUnauthorizedClientError extends Error {
|
|
data: Record<string, unknown>;
|
|
description: any;
|
|
constructor(message: string | undefined, description: any, data: Record<string, unknown>) {
|
|
super(message);
|
|
this.name = this.constructor.name;
|
|
this.data = data;
|
|
this.description = description;
|
|
}
|
|
}
|