(
receiver: Record<string, any>,
prop: string,
)
| 281 | } |
| 282 | |
| 283 | private createExceptionZone( |
| 284 | receiver: Record<string, any>, |
| 285 | prop: string, |
| 286 | ): Function { |
| 287 | const teardown = this.abortOnError === false ? rethrow : undefined; |
| 288 | |
| 289 | return (...args: unknown[]) => { |
| 290 | let result: unknown; |
| 291 | ExceptionsZone.run( |
| 292 | () => { |
| 293 | result = receiver[prop](...args); |
| 294 | }, |
| 295 | teardown, |
| 296 | this.autoFlushLogs, |
| 297 | ); |
| 298 | |
| 299 | return result; |
| 300 | }; |
| 301 | } |
| 302 | |
| 303 | private registerLoggerConfiguration( |
| 304 | options: NestApplicationContextOptions | undefined, |
no test coverage detected