diff options
author | Simon L <szaimen@e.mail.de> | 2023-06-16 13:22:55 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2023-06-24 16:54:11 +0200 |
commit | 1afc82327aecbd372ddcd5bf8306bcb3722700ed (patch) | |
tree | 7004f37c8faabdc2204ed5e407e66d46d3b92287 /core/src/OC | |
parent | 99cbf778f31a543889edcc709dbc9e8c9361e5f5 (diff) | |
download | nextcloud-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/OC')
-rw-r--r-- | core/src/OC/capabilities.js | 2 | ||||
-rw-r--r-- | core/src/OC/util.js | 4 |
2 files changed, 3 insertions, 3 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) { |