mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
minor logging improvement
This commit is contained in:
@@ -362,9 +362,9 @@ class SingleDialer extends Emitter {
|
||||
this.dlg.callSid = this.callSid;
|
||||
this.dlg.linkedSpanId = this.rootSpan.traceId;
|
||||
const rootSpan = new RootSpan('outbound-call', this.dlg);
|
||||
this.logger = logger.child({traceId: rootSpan.traceId});
|
||||
const newLogger = logger.child({traceId: rootSpan.traceId});
|
||||
const cs = new AdultingCallSession({
|
||||
logger: this.logger,
|
||||
logger: newLogger,
|
||||
singleDialer: this,
|
||||
application,
|
||||
callInfo: this.callInfo,
|
||||
@@ -372,7 +372,7 @@ class SingleDialer extends Emitter {
|
||||
tasks,
|
||||
rootSpan
|
||||
});
|
||||
cs.exec();
|
||||
cs.exec().catch((err) => newLogger.error({err}, 'doAdulting: error executing session'));
|
||||
return cs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user