diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-05-12 14:09:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-12 14:09:18 +0200 |
commit | 826624317bba47eed18991388401c68352dce492 (patch) | |
tree | fa52803cdc9f5fc95de31f970ea5ab0501aca056 /core/src | |
parent | 12fe83cd432db16d379abacf5d8f318b98dce5a3 (diff) | |
parent | 9db32a48f8f393fe0db16000ce9b33a78e8599f5 (diff) | |
download | nextcloud-server-826624317bba47eed18991388401c68352dce492.tar.gz nextcloud-server-826624317bba47eed18991388401c68352dce492.zip |
Merge pull request #20936 from nextcloud/revert-20922-enhancement/debug-globals-trace
Revert "Log trace when deprecated globals are used"
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/globals.js | 7 |
1 files changed, 1 insertions, 6 deletions
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) } } |