diff --git a/lib/record/google-storage.js b/lib/record/google-storage.js index 842e221..d0a9637 100644 --- a/lib/record/google-storage.js +++ b/lib/record/google-storage.js @@ -13,8 +13,8 @@ class GoogleStorageUploadStream extends Writable { metadata: opts.metadata }); - this.writeStream.on('error', (err) => console.error(err)); - this.writeStream.on('finish', () => console.log('Upload completed.')); + this.writeStream.on('error', (err) => this.logger.error(err)); + this.writeStream.on('finish', () => this.logger.log('Upload completed.')); } _write(chunk, encoding, callback) {