@@ -93,9 +93,9 @@ export default class Catcher {
9393 private readonly disableVueErrorHandler : boolean = false ;
9494
9595 /**
96- * Disable console log handler
96+ * Console log handler
9797 */
98- private readonly disableConsoleLogHandler : boolean = false ;
98+ private readonly consoleTracking : boolean = true ;
9999
100100 /**
101101 * Catcher constructor
@@ -116,7 +116,7 @@ export default class Catcher {
116116 this . context = settings . context || undefined ;
117117 this . beforeSend = settings . beforeSend ;
118118 this . disableVueErrorHandler = settings . disableVueErrorHandler ?? false ;
119- this . disableConsoleLogHandler = settings . disableConsoleLogHandler ?? false ;
119+ this . consoleTracking = settings . consoleTracking ?? true ;
120120
121121 if ( ! this . token ) {
122122 log (
@@ -142,7 +142,7 @@ export default class Catcher {
142142 } ,
143143 } ) ;
144144
145- if ( ! settings . disableConsoleLogHandler ) {
145+ if ( settings . consoleTracking ) {
146146 initConsoleCatcher ( ) ;
147147 }
148148
@@ -245,7 +245,7 @@ export default class Catcher {
245245 * Add error to console logs
246246 */
247247
248- if ( ! this . disableConsoleLogHandler ) {
248+ if ( this . consoleTracking ) {
249249 addErrorEvent ( event ) ;
250250 }
251251
@@ -513,7 +513,7 @@ export default class Catcher {
513513 const userAgent = window . navigator . userAgent ;
514514 const location = window . location . href ;
515515 const getParams = this . getGetParams ( ) ;
516- const consoleLogs = ! this . disableConsoleLogHandler ? getConsoleLogStack ( ) : [ ] ;
516+ const consoleLogs = this . consoleTracking ? getConsoleLogStack ( ) : [ ] ;
517517
518518 const addons : JavaScriptAddons = {
519519 window : {
0 commit comments