support changing log level runtime (#926)

* support changing log level runtime

* support changing log level runtime

* support changing log level runtime
This commit is contained in:
Hoan Luu Huu
2024-10-07 20:51:51 +07:00
committed by GitHub
parent 96b3b0fe07
commit 2af67d8f05
5 changed files with 59 additions and 9 deletions

View File

@@ -258,6 +258,8 @@ router.post('/',
callId: inviteReq.get('Call-ID'),
accountSid,
traceId: rootSpan.traceId
}, {
...(account.enable_debug_log && {level: 'debug'})
});
app.requestor.logger = app.notifier.logger = sipLogger;
const callInfo = new CallInfo({