aboutsummaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-05-12 14:09:18 +0200
committerGitHub <noreply@github.com>2020-05-12 14:09:18 +0200
commit826624317bba47eed18991388401c68352dce492 (patch)
treefa52803cdc9f5fc95de31f970ea5ab0501aca056 /core/src
parent12fe83cd432db16d379abacf5d8f318b98dce5a3 (diff)
parent9db32a48f8f393fe0db16000ce9b33a78e8599f5 (diff)
downloadnextcloud-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.js7
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)
}
}