mirror of
https://github.com/jambonz/sbc-sip-sidecar.git
synced 2025-12-19 04:27:46 +00:00
minor logging
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user