NestJS - Interceptors
Consider this LoggingInterceptor snippet:
What will be logged when a request completes?
intercept(context: ExecutionContext, next: CallHandler): Observable{ const start = Date.now(); return next.handle().pipe( tap(() => console.log(`Processed in ${Date.now() - start}ms`)) ); }
What will be logged when a request completes?
