mirror of
https://github.com/jambonz/sbc-sip-sidecar.git
synced 2026-07-04 19:32:03 +00:00
minor logging
This commit is contained in:
+1
-1
@@ -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