feat(xo-server/_handleHttpRequest): add fn and data to the error log
This should ease debugging.
This commit is contained in:
parent
b176780527
commit
173866236f
@ -149,7 +149,11 @@ export default class Xo extends EventEmitter {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
log.error('HTTP request error', { error })
|
log.error('HTTP request error', {
|
||||||
|
data,
|
||||||
|
error,
|
||||||
|
fn: fn.name,
|
||||||
|
})
|
||||||
|
|
||||||
if (!res.headersSent) {
|
if (!res.headersSent) {
|
||||||
res.writeHead(500)
|
res.writeHead(500)
|
||||||
|
Loading…
Reference in New Issue
Block a user