support change log level run time (#169)

* support change log level run time

* support change log level run time
This commit is contained in:
Hoan Luu Huu
2024-10-07 20:52:01 +07:00
committed by GitHub
parent 524a556a7c
commit a6b1e58b87
3 changed files with 10 additions and 3 deletions
+2
View File
@@ -235,6 +235,8 @@ module.exports = function(srf, logger) {
callId: req.get('Call-ID'),
service_provider_sid: req.locals.service_provider_sid,
account_sid: req.locals.account_sid
}, {
...(req.locals.account.enable_debug_log && {level: 'debug'})
});
next();