File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,6 @@ export default class Catcher {
144144
145145 if ( ! settings . disableConsoleLogHandler ) {
146146 initConsoleCatcher ( ) ;
147- console . log ( 'Console log handler initialized' ) ;
148147 }
149148
150149 /**
@@ -246,7 +245,9 @@ export default class Catcher {
246245 * Add error to console logs
247246 */
248247
249- addErrorEvent ( event ) ;
248+ if ( ! this . disableConsoleLogHandler ) {
249+ addErrorEvent ( event ) ;
250+ }
250251
251252 /**
252253 * Promise rejection reason is recommended to be an Error, but it can be a string:
@@ -512,7 +513,7 @@ export default class Catcher {
512513 const userAgent = window . navigator . userAgent ;
513514 const location = window . location . href ;
514515 const getParams = this . getGetParams ( ) ;
515- const consoleLogs = getConsoleLogStack ( ) ;
516+ const consoleLogs = ! this . disableConsoleLogHandler ? getConsoleLogStack ( ) : [ ] ;
516517
517518 const addons : JavaScriptAddons = {
518519 window : {
You can’t perform that action at this time.
0 commit comments