From 7e1f85ec14d8af64a583f9405a35b177bf729c9c Mon Sep 17 00:00:00 2001 From: Quan HL Date: Fri, 28 Jul 2023 17:55:33 +0700 Subject: [PATCH] add metadata to google storage --- lib/record/google-storage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {