From 9db32a48f8f393fe0db16000ce9b33a78e8599f5 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Tue, 12 May 2020 11:54:34 +0200 Subject: Revert "Log trace when deprecated globals are used" --- core/src/globals.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'core/src') diff --git a/core/src/globals.js b/core/src/globals.js index a55392f3a74..e7f2b075374 100644 --- a/core/src/globals.js +++ b/core/src/globals.js @@ -53,16 +53,11 @@ import 'strengthify/strengthify.css' import OC from './OC/index' import OCP from './OCP/index' import OCA from './OCA/index' -import { debug } from './OC/debug' import escapeHTML from 'escape-html' import { getToken as getRequestToken } from './OC/requesttoken' const warnIfNotTesting = function() { - const notTesting = window.TESTING === undefined - if (notTesting && debug) { - /* eslint-disable no-console */ - console.trace.apply(console, arguments) - } else if (notTesting) { + if (window.TESTING === undefined) { console.warn.apply(console, arguments) } } -- cgit v1.2.3