question

company avatar image
company asked

Playfab sdk client side log

Hi, can i turn on some logging (like Debug.Log) for Playfab SDK to know what playfab is doing in the background? The latest sdk doesnt return from an executeCloudscript on iOS and i dont know what is happening.

Thanks, Milan

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.

1 Answer

·
brendan avatar image
brendan answered

Not currently, but we have a backlog item for that. For a quick-and-dirty version, you could simply add a debug log line in the serializer or HTTP common code.

For the ExecuteCloudScript call, can you try stepping into the code in your debugger, to see what the specific response is from the service? Can you share your code snippet for how you're making the call, and let us know the Title ID and the specific values of the parameters being passed in?

9 comments
10 |1200

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

company avatar image company commented ·

I wrote the logging into the http code, thanks
Actually we just didnt wait enough time, pfab calls took up to 22 seconds to receive the answer. Now the problem is gone without fixing anything on our side, so im not sure what caused this huge delay (ios specific or network problems on that device or anything on playfab side or our game code somehow). When it re-appears i try to find out more.

0 Likes 0 ·
brendan avatar image brendan company commented ·

If a call were to take that long, there would be alerts firing on our side, so there's something else going on there. What is the Title ID for this? You can see the average response times for all calls in the API report, but I can also check the details on our side, to look for outliers.

0 Likes 0 ·
company avatar image company brendan commented ·

This is a usual call time on Windows from unity editor, logs are from pfab www:

4/7/2017 16:30:52.198 [ Log] [ U] PFAB WWW POST: https://6513.playfabapi.com/Client/ExecuteCloudScript

....

4/7/2017 16:30:54.768 [ Log] [ U] PFAB WWW RESPONSE: https://6513.playfabapi.com/Client/ExecuteCloudScript

it is calling our "GetTimeSeconds" cloud script, which is not doing much.

0 Likes 0 ·
Show more comments
company avatar image company commented ·

We have Amazon Web Services calls also, those worked fine, though.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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