diff --git a/src/contact.ts b/src/contact.ts index 85567358d4d1dcdb4690b421dc3aa5e16940318a..d311271bff2fe3c698b4961020acb17557ce112e 100644 --- a/src/contact.ts +++ b/src/contact.ts @@ -399,7 +399,7 @@ export class Contact implements Sayable { * } */ public alias(newAlias?: string|null): Promise | string | null { - log.silly('Contact', 'alias(%s)', newAlias || '') + // log.silly('Contact', 'alias(%s)', newAlias || '') if (newAlias === undefined) { return this.obj && this.obj.alias || null @@ -588,7 +588,7 @@ export class Contact implements Sayable { * @private */ public async ready(contactGetter?: (id: string) => Promise): Promise { - log.silly('Contact', 'ready(' + (contactGetter ? typeof contactGetter : '') + ')') + // log.silly('Contact', 'ready(' + (contactGetter ? typeof contactGetter : '') + ')') if (!this.id) { const e = new Error('ready() call on an un-inited contact') throw e diff --git a/src/message.ts b/src/message.ts index 6b53e8951161495c562777124af5511eea240c87..585f16e92714e641c0952a657196bd2ecadf1ac8 100644 --- a/src/message.ts +++ b/src/message.ts @@ -878,6 +878,8 @@ export class MediaMessage extends Message { * Get the read stream for attachment file */ public async readyStream(): Promise { + log.verbose('MediaMessage', 'readyStream()') + if (this.filePath) return fs.createReadStream(this.filePath)