diff --git a/packages/basic.gblib/services/DialogKeywords.ts b/packages/basic.gblib/services/DialogKeywords.ts index 0eacbb06..616e2422 100644 --- a/packages/basic.gblib/services/DialogKeywords.ts +++ b/packages/basic.gblib/services/DialogKeywords.ts @@ -129,10 +129,11 @@ export class DialogKeywords { /** * Sends a file to a given mobile. * - * @example SEND FILE TO "+199988887777", "image.jpg" + * @example SEND FILE TO "+199988887777", "image.jpg", caption * */ public async sendFileTo(step, mobile, filename, caption) { + GBLog.info(`BASIC: SEND FILE TO '${mobile}', filename '${filename}'.`); return await this.internalSendFile(step, mobile, filename, caption); } @@ -244,11 +245,11 @@ export class DialogKeywords { */ private async internalSendFile(step, mobile, filename, caption) { if (filename.indexOf('.md') > -1) { - GBLog.info(`BASIC: Sending the contents of ${filename} markdown to mobile.`); + GBLog.info(`BASIC: Sending the contents of ${filename} markdown to mobile ${mobile}.`); const md = await this.min.kbService.getAnswerTextByMediaName(this.min.instance.instanceId, filename); await this.min.conversationalService.sendMarkdownToMobile(this.min, step, mobile, md); } else { - GBLog.info(`BASIC: Sending the file ${filename} to mobile.`); + GBLog.info(`BASIC: Sending the file ${filename} to mobile ${mobile}.`); const url = urlJoin( GBServer.globals.publicAddress, 'kb', diff --git a/packages/basic.gblib/services/SystemKeywords.ts b/packages/basic.gblib/services/SystemKeywords.ts index b19107f9..d0cf56a4 100644 --- a/packages/basic.gblib/services/SystemKeywords.ts +++ b/packages/basic.gblib/services/SystemKeywords.ts @@ -161,6 +161,7 @@ export class SystemKeywords { * */ public async sendSmsTo(mobile, message) { + GBLog.info(`BASIC: SEND SMS TO '${mobile}', message '${message}'.`); await this.min.conversationalService.sendSms(this.min, mobile, message); }