MCPcopy
hub / github.com/fastify/fastify / logStreamError

Function logStreamError

lib/reply.js:730–738  ·  view source on GitHub ↗
(logger, err, res)

Source from the content-addressed store, hash-verified

728}
729
730function logStreamError (logger, err, res) {
731 if (err.code === 'ERR_STREAM_PREMATURE_CLOSE') {
732 if (!logger[kDisableRequestLogging]) {
733 logger.info({ res }, 'stream closed prematurely')
734 }
735 } else {
736 logger.warn({ err }, 'response terminated with an error with headers already sent')
737 }
738}
739
740function sendWebStream (payload, res, reply) {
741 if (payload.locked) {

Callers 3

sendWebStreamFunction · 0.85
onReadErrorFunction · 0.85
sendStreamFunction · 0.85

Calls 2

infoMethod · 0.80
warnMethod · 0.80

Tested by

no test coverage detected