From 27b4eea796c0c98837fb228c840cce44efeff033 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Mon, 28 Sep 2020 12:05:16 +0200 Subject: [PATCH] improve error handling and logging --- client/modules/IDE/reducers/files.js | 1 + dist/static/assets/webcam.js | 19 ------------------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/client/modules/IDE/reducers/files.js b/client/modules/IDE/reducers/files.js index 6cade0d7..b004caca 100644 --- a/client/modules/IDE/reducers/files.js +++ b/client/modules/IDE/reducers/files.js @@ -15,6 +15,7 @@ const defaultHTML = + diff --git a/dist/static/assets/webcam.js b/dist/static/assets/webcam.js index 39e4a595..5e26e19a 100644 --- a/dist/static/assets/webcam.js +++ b/dist/static/assets/webcam.js @@ -454,22 +454,3 @@ if (event.reason && event.reason.message && event.reason.stack){ }], '*'); } }; - -(function(){ - const oldLog = console.log; - console.log = function (...params) { - oldLog.apply(console, params); - - const err = new Error(); - const logSrc = err.stack.split("\n")[1]; - const args = params.map((a) => ""+a); // to string - window.parent.postMessage([{ - log: [{ - method: 'log', - data: args, - id: Date.now().toString() - }], - source: logSrc - }], '*'); - }; -})(); \ No newline at end of file