reactjsagora.ioagora-web-sdk-ng

how to keep agora from showing sensitive user data in the browser console


enter image description here

Here you can see that in the console you can see the memberId as their email address. Any way to hide that or remove these updates from the console? I get them anytime someone enters or leaves a group chat.


Solution

  • You need to disable the logs using the AgoraRTC Logger.

    Example: AgoraRTC.Logger.setLogLevel(AgoraRTC.Logger.NONE)

    Refer this documentation link: https://docs.agora.io/en/All/API%20Reference/web/modules/agorartc.logger.html#setloglevel