We'd like to pause the error monitoring system when a user enters their password. As per the logger API (https://app.therootcause.io/docs-api/Logger.html). We have used functions pause() and resume() but it still renders the complete info to RootCause.
Also in the documentation, pause() mentions 'Resumes the error monitoring' and resume() mentions 'Pauses the error monitoring' in their description. Using both functions in different orders still does not make the logger to be paused.
Is there any other function that can be used to temporarily pause the RootCause monitoring?
Regards,
Rayudu
Re: Logger Pause and Resume seem to not work
Posted: Thu Oct 06, 2022 3:24 pm
by egraves@accuer.com
Adding - the main issue is that the key strokes are recorded when the user types in their password in the sign-in page and in the Change Password window. The passwords are properly masked (****) so we can't see them except in the Timeline portion of the Root Cause. We need to not see them there, either. What is the easy way to prevent that specific text entry from being captured?
Re: Logger Pause and Resume seem to not work
Posted: Sun Oct 09, 2022 1:19 pm
by mats
Try instead:
// before secret things
logger.recorder.stop();
// resume
logger.recorder.start();
Re: Logger Pause and Resume seem to not work
Posted: Tue Oct 11, 2022 9:18 am
by rayudu.pasumarthy
Hi Mats,
logger.recorder.stop(); seems to completely halt the video recording even when logger.recorder.start() is executed. The user inputs are successfully paused and resumed but the video is not captured post executing logger.recorder.start()
Is there a function available to resume the video capture after using the stop()?
Thanks,
Rayudu.
Re: Logger Pause and Resume seem to not work
Posted: Tue Oct 11, 2022 8:26 pm
by mats
Looks like there's a bug with stopping and restarting video recording, try overriding the stopVideoRecording method to be
stopVideoRecording : function () {
var me = this
if (me.videoDurationTimeout) {
clearTimeout(me.videoDurationTimeout);
}
if (me.mirrorProducer) {
me.mirrorProducer.disconnect()
}
},
Re: Logger Pause and Resume seem to not work
Posted: Wed Oct 12, 2022 1:44 pm
by rayudu.pasumarthy
Thanks Mats, it is working well with this addition.