minor logging

This commit is contained in:
Dave Horton
2022-11-01 18:58:34 -04:00
parent fdaaaf9d47
commit e5b626fdc7

View File

@@ -6,7 +6,7 @@ module.exports = handler;
function handler({logger}) {
return async(req, res) => {
debug(`received ${req.method} from ${req.protocol}/${req.source_address}:${req.source_port}`);
logger.debug(`received ${req.method} from ${req.protocol}/${req.source_address}:${req.source_port}`);
if ('register' === req.registration.type && '0' !== req.registration.expires) await register(logger, req, res);
else await unregister(logger, req, res);