Skip to content

Commit a70ea68

Browse files
committed
tweak debug
1 parent 9fe63d2 commit a70ea68

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

index.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@
3636
console.log(name, v)
3737
}
3838
})
39-
socket(public_key, {
40-
element: '#socket2',
41-
mode: 'enquiry',
42-
api_root: api_root,
43-
})
44-
socket(public_key, {
45-
element: '#socket3',
46-
mode: 'enquiry-modal',
47-
api_root: api_root,
48-
})
39+
// socket(public_key, {
40+
// element: '#socket2',
41+
// mode: 'enquiry',
42+
// api_root: api_root,
43+
// })
44+
// socket(public_key, {
45+
// element: '#socket3',
46+
// mode: 'enquiry-modal',
47+
// api_root: api_root,
48+
// })
4949
</script>
5050
</html>

src/main.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ const raven_config = {
1919
shouldSendCallback: data => {
2020
// if no culprit this a message and came from socket
2121
const culprit = data.culprit || '/socket.js'
22-
return culprit.indexOf('/socket.js') > 0
22+
const should_send = culprit.indexOf('/socket.js') > 0
23+
console.debug('sending raven error', should_send, data)
24+
return should_send
2325
}
2426
}
2527
Raven.config(process.env.RAVEN_DSN, raven_config).addPlugin(RavenVue, Vue).install()
@@ -135,6 +137,7 @@ module.exports = function (public_key, config) {
135137

136138
if (config.url_root === 'auto') {
137139
config.url_root = auto_url_root(window.location.pathname)
140+
console.debug('auto generated url root:', config.url_root)
138141
}
139142

140143
if (!config.router_mode) {
@@ -203,7 +206,7 @@ module.exports = function (public_key, config) {
203206
},
204207
watch: {
205208
'$route' (to, from) {
206-
console.debug(`route change ${from.path} to ${to.path}`, from, to)
209+
console.debug(`navigated from ${from.path} to ${to.path}`, from, to)
207210
if (this.config.mode === 'grid' && to.name === 'index') {
208211
this.get_contractor_list()
209212
}

0 commit comments

Comments
 (0)