Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
base/util: don't use the Grand Unified Logger
Saúl Ibarra Corretgéf863733dd301
diff --git a/react/features/base/util/helpers.js b/react/features/base/util/helpers.jsindex e7e870d30b..2c2f07472f 100644--- a/react/features/base/util/helpers.js+++ b/react/features/base/util/helpers.js@@ -1,7 +1,5 @@// @flow-import logger from './logger';-/*** Creates a deferred object.*@@ -106,6 +104,6 @@ export function assignIfDefined(target: Object, source: Object) {* @returns {void}*/export function reportError(e: Object, msg: string = '') {- logger.error(msg, e);+ console.error(msg, e);window.onerror && window.onerror(msg, null, null, null, e);}diff --git a/react/features/base/util/httpUtils.js b/react/features/base/util/httpUtils.jsindex 5479267c99..9dfa598dd5 100644--- a/react/features/base/util/httpUtils.js+++ b/react/features/base/util/httpUtils.js@@ -1,7 +1,5 @@import { timeoutPromise } from './timeoutPromise';-import logger from './logger';-/*** The number of milliseconds before deciding that we need retry a fetch request.*@@ -29,11 +27,6 @@ export function doGetJSON(url, retry) {return jsonify.then(result => Promise.reject(result));- })- .catch(error => {- logger.error('Error performing get:', url, error);-- return Promise.reject(error);});if (retry) {diff --git a/react/features/base/util/logger.js b/react/features/base/util/logger.jsdeleted file mode 100644index 82d31be58e..0000000000--- a/react/features/base/util/logger.js+++ /dev/null@@ -1,5 +0,0 @@-// @flow--import { getLogger } from '../logging/functions';--export default getLogger('features/base/util');diff --git a/react/features/base/util/uri.js b/react/features/base/util/uri.jsindex 60d6393917..bb292d8e22 100644--- a/react/features/base/util/uri.js+++ b/react/features/base/util/uri.js@@ -1,7 +1,5 @@// @flow-import logger from './logger';-/*** The app linking scheme.* TODO: This should be read from the manifest files later.@@ -133,7 +131,7 @@ function _objectToURLParamsArray(obj = {}) {params.push(`${key}=${encodeURIComponent(JSON.stringify(obj[key]))}`);} catch (e) {- logger.warn(`Error encoding ${key}: ${e}`);+ console.warn(`Error encoding ${key}: ${e}`);}}