aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/globals.js
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-06-16 14:03:23 +0200
committerJohn Molakvoæ <skjnldsv@users.noreply.github.com>2023-06-24 16:54:11 +0200
commit872483f279732908d60d1a85abedcc8fb79a625a (patch)
treeb8efe26dd07d335bc3e6f38db8a3da3bc4ed9e91 /core/src/globals.js
parent1afc82327aecbd372ddcd5bf8306bcb3722700ed (diff)
downloadnextcloud-server-872483f279732908d60d1a85abedcc8fb79a625a.tar.gz
nextcloud-server-872483f279732908d60d1a85abedcc8fb79a625a.zip
only print deprecation logs if debug mode is enabled
Signed-off-by: Simon L <szaimen@e.mail.de>
Diffstat (limited to 'core/src/globals.js')
-rw-r--r--core/src/globals.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/globals.js b/core/src/globals.js
index dcad2bcdbf6..61ad3921999 100644
--- a/core/src/globals.js
+++ b/core/src/globals.js
@@ -56,7 +56,7 @@ import { getToken as getRequestToken } from './OC/requesttoken.js'
const warnIfNotTesting = function() {
if (window.TESTING === undefined) {
- console.debug.apply(console, arguments)
+ OC.debug && console.debug.apply(console, arguments)
}
}