summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-03-25 12:01:02 +0100
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-04-06 14:49:31 +0200
commitbda286c7f090d1420d35aa5e38039daa5e92ec5f (patch)
tree14c161c1f4358535e543c9d9aeb03d3a587ed12c /apps/files
parentf28944e23f96dd756cba3739e99c2fba57e81f1f (diff)
downloadnextcloud-server-bda286c7f090d1420d35aa5e38039daa5e92ec5f.tar.gz
nextcloud-server-bda286c7f090d1420d35aa5e38039daa5e92ec5f.zip
perf(files): less verbose
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/src/components/FileEntry.vue5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue
index 4d7582216f4..412ac44fee2 100644
--- a/apps/files/src/components/FileEntry.vue
+++ b/apps/files/src/components/FileEntry.vue
@@ -346,7 +346,6 @@ export default Vue.extend({
// Check if we already have this preview cached
const isCached = await this.isCachedPreview(this.previewUrl)
if (isCached) {
- logger.debug('Preview already cached', { fileId: this.source.attributes.fileid, backgroundFailed: this.backgroundFailed })
this.backgroundImage = `url(${this.previewUrl})`
this.backgroundFailed = false
return
@@ -357,14 +356,12 @@ export default Vue.extend({
},
fetchAndApplyPreview() {
- logger.debug('Fetching preview', { fileId: this.source.attributes.fileid })
this.img = new Image()
this.img.onload = () => {
this.backgroundImage = `url(${this.previewUrl})`
}
- this.img.onerror = (a, b, c) => {
+ this.img.onerror = () => {
this.backgroundFailed = true
- logger.error('Failed to fetch preview', { fileId: this.source.attributes.fileid, a, b, c })
}
this.img.src = this.previewUrl
},