Commit 8d8904c9 authored by Anton's avatar Anton

Clean up logging statements, change console.log to console.debug

parent 72ee54cf
Pipeline #30182 passed with stage
in 1 minute and 24 seconds
......@@ -116,7 +116,6 @@
}
},
async updateACL () {
console.debug('setting acl...', this.acl)
if (this.acl.public) {
await this.setACL('acl/set', { role: 'public', id: this.timeline.id, permissions: ['get'] }, this.acl.recursive)
}
......
......@@ -37,7 +37,6 @@
},
watch: {
datetime (val) {
console.log('datetime', val)
if (val !== this.datetimeInternal) this.datetimeInternal = val
},
datetimeInternal (val) {
......
......@@ -155,7 +155,6 @@
})
.catch(function (err) {
Loading.hide()
console.debug('Form submit:', err)
$store.commit('notifications/addMessage', {
body: err.message
? `${err.message}${err.code
......
......@@ -65,7 +65,7 @@
}))
},
autocompleteSelected (item) {
console.debug('autocomplete selected', item)
console.debug('FormRow: autocompleteSelected', item)
}
},
created () {
......
......@@ -27,20 +27,20 @@
})
// error handling
player.on('deviceError', function () {
console.log('device error:', player.deviceErrorCode)
console.debug('device error:', player.deviceErrorCode)
})
player.on('error', function (error) {
console.log('error:', error)
console.debug('error:', error)
})
// user clicked the record button and started recording
player.on('startRecord', function () {
console.log('started recording!')
console.debug('started recording!')
})
// user completed recording and stream is available
player.on('finishRecord', function () {
// the blob object contains the recorded data that
// can be downloaded by the user, stored on server etc.
console.log('finished recording: ', player.recordedData)
console.debug('finished recording: ', player.recordedData)
})
}
}
......
......@@ -371,7 +371,6 @@
this.timeline = undefined
this.mediaMetadata = undefined
this.grid = undefined
console.log('ROUTE', route)
// this.currentRoute = route.name
// detect current app
......
......@@ -170,7 +170,6 @@
data.items = await this.config.request(/* { pagination, filter } */)
}
if (!data.items) data = await this.$store.dispatch(`${this.path}/find`, this.query)
console.log('DATA', data)
if (!data.items) {
this.loading = false
return
......@@ -206,9 +205,6 @@
}
},
watch: {
selected () {
console.debug('selected', this.selected)
},
config () {
this.updateConfig()
}
......
......@@ -46,7 +46,6 @@
})
uniqueTags = Object.keys(tagMap)
}
// console.log('removed', tags.length - uniqueTags.length, 'tags')
return uniqueTags
},
updateTags () {
......@@ -56,18 +55,15 @@
return a.body.value
})
annotationTags = this.enforceUniqueTags(annotationTags)
// console.log(this.annotations, annotationTags)
this.tags = this.enforceUniqueTags(this.tags)
let tagsDelete = annotationTags.filter(at => {
return _this.tags.indexOf(at) === -1
})
// console.log('delete', tagsDelete)
tagsDelete = tagsDelete.map(t => {
let a = _this.annotations.find(a => {
return a.body.value === t
})
// console.log('remove', a._uuid, t)
if (a && a._uuid) return this.$store.dispatch('annotations/remove', a._uuid)
return null
})
......@@ -75,7 +71,6 @@
let tagsAdd = this.tags.filter(t => {
return annotationTags.indexOf(t) === -1
})
// console.log('add', tagsAdd)
tagsAdd = tagsAdd.map(t => {
let annotation = {
body: {
......@@ -88,7 +83,6 @@
type: _this.targetType || _this.typeFromRoute()
}
}
// console.log('add', t, annotation)
return this.$store.dispatch('annotations/create', annotation)
})
......
......@@ -44,7 +44,6 @@
},
onFail (file, xhr) {
let response
console.debug('uploader failed file', file, xhr)
try {
response = JSON.parse(xhr.responseText)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment