Idea

Alaa Adel avatar image
Alaa Adel suggested

Control Debug messages in the JS SDK

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.

sdks
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

No Comments

·

Write a Comment

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.