question

Ozan Yilmaz avatar image
Ozan Yilmaz asked

Should I remove log.info commands from Cloudscript?

Hello everyone,

While testing our game, we put many log.info commands in the Cloudscript to find & fix bugs in the script. Before releasing the game, should we remove all those commands from the script or leave them for debugging? Does it affect the billing in any way?

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

·
Seth Du avatar image
Seth Du answered

In my point of view, removing all the debug sentences in your Cloud Script function is not necessary. The logs will be contained in the PlayStream Events, which are only accessible for developers/administrators. On the contrary, Some important information that is not directly involved in the gaming procedure, but is valuable for later data analysis can be stored in the form of logs in PlayStream Events. It's up to you to have those logs. (Of course, those simple debugging logs won't be useful)

In terms of billing, it surely will affect because the payload size of PlayStream Events will be metered as the logs in events will crease the size. It depends on how much data you want to log, but usually it won't affect a lot.

10 |1200

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

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.