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