File tree Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -90,17 +90,6 @@ function interceptStderrWrite() {
9090 } ;
9191}
9292
93- export const errorHandler = (
94- // eslint-disable-next-line @typescript-eslint/no-explicit-any
95- err : Error | any ,
96- req : express . Request , // eslint-disable-line @typescript-eslint/no-unused-vars
97- res : express . Response ,
98- next : express . NextFunction // eslint-disable-line @typescript-eslint/no-unused-vars
99- ) => {
100- interceptStderrWrite ( ) ;
101- sendCrashResponse ( { err, res} ) ;
102- } ;
103-
10493// eslint-disable-next-line @typescript-eslint/no-explicit-any
10594export function splitArgs ( args : any [ ] ) {
10695 let encoding , cb ;
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ import {timeoutMiddleware} from './middleware/timeout';
2525import { wrapUserFunction } from './function_wrappers' ;
2626import { asyncLocalStorageMiddleware } from './async_local_storage' ;
2727import { executionContextMiddleware } from './execution_context' ;
28- import { errorHandler } from './logger' ;
2928import { FrameworkOptions } from './options' ;
3029
3130/**
@@ -161,10 +160,5 @@ export function getServer(
161160 app . post ( '/*' , requestHandler ) ;
162161 }
163162
164- // Error Handler
165- if ( options . enableExecutionId ) {
166- app . use ( errorHandler ) ;
167- }
168-
169163 return http . createServer ( app ) ;
170164}
You can’t perform that action at this time.
0 commit comments