summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-06-16 13:22:55 +0200
committerJohn Molakvoæ <skjnldsv@users.noreply.github.com>2023-06-24 16:54:11 +0200
commit1afc82327aecbd372ddcd5bf8306bcb3722700ed (patch)
tree7004f37c8faabdc2204ed5e407e66d46d3b92287 /core/src
parent99cbf778f31a543889edcc709dbc9e8c9361e5f5 (diff)
downloadnextcloud-server-1afc82327aecbd372ddcd5bf8306bcb3722700ed.tar.gz
nextcloud-server-1afc82327aecbd372ddcd5bf8306bcb3722700ed.zip
Move deprecation warnings to debug
Signed-off-by: Simon L <szaimen@e.mail.de>
Diffstat (limited to 'core/src')
-rw-r--r--core/src/OC/capabilities.js2
-rw-r--r--core/src/OC/util.js4
-rw-r--r--core/src/OCA/search.js2
-rw-r--r--core/src/globals.js2
-rw-r--r--core/src/jquery/placeholder.js2
5 files changed, 6 insertions, 6 deletions
diff --git a/core/src/OC/capabilities.js b/core/src/OC/capabilities.js
index c7df9b4f3d1..fffed92dede 100644
--- a/core/src/OC/capabilities.js
+++ b/core/src/OC/capabilities.js
@@ -32,6 +32,6 @@ import { getCapabilities as realGetCapabilities } from '@nextcloud/capabilities'
* @since 14.0.0
*/
export const getCapabilities = () => {
- console.warn('OC.getCapabilities is deprecated and will be removed in Nextcloud 21. See @nextcloud/capabilities')
+ console.debug('OC.getCapabilities is deprecated and will be removed in Nextcloud 21. See @nextcloud/capabilities')
return realGetCapabilities()
}
diff --git a/core/src/OC/util.js b/core/src/OC/util.js
index 8a50808b5cb..db6b0eccae0 100644
--- a/core/src/OC/util.js
+++ b/core/src/OC/util.js
@@ -124,7 +124,7 @@ export default {
*/
formatDate(timestamp, format) {
if (window.TESTING === undefined) {
- console.warn('OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment')
+ console.debug('OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment')
}
format = format || 'LLL'
return moment(timestamp).format(format)
@@ -136,7 +136,7 @@ export default {
*/
relativeModifiedDate(timestamp) {
if (window.TESTING === undefined) {
- console.warn('OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment')
+ console.debug('OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment')
}
const diff = moment().diff(moment(timestamp))
if (diff >= 0 && diff < 45000) {
diff --git a/core/src/OCA/search.js b/core/src/OCA/search.js
index 10b629a0cf3..e206e04f4b7 100644
--- a/core/src/OCA/search.js
+++ b/core/src/OCA/search.js
@@ -26,7 +26,7 @@ export default class Search {
* @deprecated 20.0.0, will be removed in Nextcloud 22
*/
constructor() {
- console.warn('OCA.Search is deprecated. Please use the unified search API instead')
+ console.debug('OCA.Search is deprecated. Please use the unified search API instead')
}
}
diff --git a/core/src/globals.js b/core/src/globals.js
index 8d60bde6eb0..dcad2bcdbf6 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.warn.apply(console, arguments)
+ console.debug.apply(console, arguments)
}
}
diff --git a/core/src/jquery/placeholder.js b/core/src/jquery/placeholder.js
index 03647059131..d91c94c18ac 100644
--- a/core/src/jquery/placeholder.js
+++ b/core/src/jquery/placeholder.js
@@ -140,7 +140,7 @@ const toRgb = (s) => {
}
String.prototype.toRgb = function() {
- console.warn('String.prototype.toRgb is deprecated! It will be removed in Nextcloud 22.')
+ console.debug('String.prototype.toRgb is deprecated! It will be removed in Nextcloud 22.')
return toRgb(this)
}