I am using the Javascript SDK.
Sometimes I get error messages in the browser console. They contain nice details about the error. But for the users, I don't want them to read this data; specially that it might contain credentials and so on..
For example, in PlayFabClientAPI.js, line 131 in Chrome, there is this line:
reject(xhrResult);
Which shows the error in console. The error allows me to read the request data and see the player's email and password..etc.
Please provide a way to enable/disable these messages by the developer. Like a variable for example, something like:
{ // ... SDK code if (isDebugMode===true) { // The developer can change it to 'false' at release // Print-to-Console code } }
Thank you.