From d436825a45469d18bfb470601d839916919c2563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 6 Sep 2019 14:15:23 +0200 Subject: [PATCH] flacworker: don't use the Grand Unified Logger There are just a couple of logs in this feature, and it's a standalone bundle, which would bloat it due to cascaded dependencis. --- .../local-recording/recording/flac/flacEncodeWorker.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/react/features/local-recording/recording/flac/flacEncodeWorker.js b/react/features/local-recording/recording/flac/flacEncodeWorker.js index cc197dbd0..73285feab 100644 --- a/react/features/local-recording/recording/flac/flacEncodeWorker.js +++ b/react/features/local-recording/recording/flac/flacEncodeWorker.js @@ -1,4 +1,4 @@ -import logger from '../../logger'; + import { MAIN_THREAD_FINISH, MAIN_THREAD_INIT, @@ -262,7 +262,7 @@ class Encoder { const errorNo = Flac.FLAC__stream_encoder_get_state(this._encoderId); - logger.error('Error during encoding', FLAC_ERRORS[errorNo]); + console.error('Error during encoding', FLAC_ERRORS[errorNo]); } } @@ -277,7 +277,7 @@ class Encoder { const status = Flac.FLAC__stream_encoder_finish(this._encoderId); - logger.log('Flac encoding finished: ', status); + console.log('Flac encoding finished: ', status); // free up resources Flac.FLAC__stream_encoder_delete(this._encoderId); @@ -371,8 +371,7 @@ self.onmessage = function(e) { case MAIN_THREAD_NEW_DATA_ARRIVED: if (encoder === null) { - logger.error('flacEncoderWorker received data when the encoder is' - + 'not ready.'); + console.error('flacEncoderWorker received data when the encoder is not ready.'); } else { encoder.encode(e.data.buf); }