@@ -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}
2527Raven . 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