Additional logging for calling service

This commit is contained in:
Fedor Indutny 2022-08-16 16:52:09 -07:00 committed by GitHub
parent 932043c58f
commit 5a3c04d630
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 28 additions and 19 deletions

View file

@ -292,7 +292,7 @@ export class CallingClass {
ipcRenderer.on('quit', () => {
for (const conversationId of Object.keys(this.callsByConversation)) {
this.hangup(conversationId);
this.hangup(conversationId, 'ipcRenderer quit');
}
});
@ -1067,8 +1067,8 @@ export class CallingClass {
);
}
hangup(conversationId: string): void {
log.info('CallingClass.hangup()');
hangup(conversationId: string, reason: string): void {
log.info(`CallingClass.hangup(${conversationId}): ${reason}`);
const specificCall = getOwn(this.callsByConversation, conversationId);
if (!specificCall) {