mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
AdultingSession: just create new child logger (simpler)
This commit is contained in:
@@ -348,7 +348,6 @@ class SingleDialer extends Emitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async doAdulting({logger, tasks, application}) {
|
async doAdulting({logger, tasks, application}) {
|
||||||
this.logger = logger;
|
|
||||||
this.adulting = true;
|
this.adulting = true;
|
||||||
this.emit('adulting');
|
this.emit('adulting');
|
||||||
if (this.ep) {
|
if (this.ep) {
|
||||||
@@ -363,9 +362,9 @@ class SingleDialer extends Emitter {
|
|||||||
this.dlg.callSid = this.callSid;
|
this.dlg.callSid = this.callSid;
|
||||||
this.dlg.linkedSpanId = this.rootSpan.traceId;
|
this.dlg.linkedSpanId = this.rootSpan.traceId;
|
||||||
const rootSpan = new RootSpan('outbound-call', this.dlg);
|
const rootSpan = new RootSpan('outbound-call', this.dlg);
|
||||||
logger.bindings({traceId: rootSpan.traceId, callSid: this.callSid, callId: this.dlg.sip.callId});
|
this.logger = logger.child({traceId: rootSpan.traceId});
|
||||||
const cs = new AdultingCallSession({
|
const cs = new AdultingCallSession({
|
||||||
logger,
|
logger: this.logger,
|
||||||
singleDialer: this,
|
singleDialer: this,
|
||||||
application,
|
application,
|
||||||
callInfo: this.callInfo,
|
callInfo: this.callInfo,
|
||||||
|
|||||||
Reference in New Issue
Block a user