(err, results)
| 253 | */ |
| 254 | function monitoringHandler(clientIP, req, res, log) { |
| 255 | function monitoringEndHandler(err, results) { |
| 256 | writeResponse(res, err, results, error => { |
| 257 | if (error) { |
| 258 | return log.end().warn('monitoring error', { err: error }); |
| 259 | } |
| 260 | return log.end(); |
| 261 | }); |
| 262 | } |
| 263 | if (req.method !== 'GET') { |
| 264 | return monitoringEndHandler(errors.MethodNotAllowed, []); |
| 265 | } |
no test coverage detected