File tree 2 files changed +0
-17
lines changed
2 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -90,17 +90,6 @@ function interceptStderrWrite() {
90
90
} ;
91
91
}
92
92
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
-
104
93
// eslint-disable-next-line @typescript-eslint/no-explicit-any
105
94
export function splitArgs ( args : any [ ] ) {
106
95
let encoding , cb ;
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ import {timeoutMiddleware} from './middleware/timeout';
25
25
import { wrapUserFunction } from './function_wrappers' ;
26
26
import { asyncLocalStorageMiddleware } from './async_local_storage' ;
27
27
import { executionContextMiddleware } from './execution_context' ;
28
- import { errorHandler } from './logger' ;
29
28
import { FrameworkOptions } from './options' ;
30
29
31
30
/**
@@ -161,10 +160,5 @@ export function getServer(
161
160
app . post ( '/*' , requestHandler ) ;
162
161
}
163
162
164
- // Error Handler
165
- if ( options . enableExecutionId ) {
166
- app . use ( errorHandler ) ;
167
- }
168
-
169
163
return http . createServer ( app ) ;
170
164
}
You can’t perform that action at this time.
0 commit comments