question

Dylan Hunt avatar image
Dylan Hunt asked

Is there a "log level" for ExecuteCloudScript?

For example, while debugging, it's nice to get a return of my many log.debug's. However, in production, I'd like to lower it to log.error's only. I know there's a few ways to do it (maybe by checking a const), but what is the simplest way to achieve this?

For example, is there a log level const I can switch somewhere so I don't have to remember to toggle, or do I need to make my own?

Otherwise that's a biiig json sending back if it includes my debug logs.

CloudScriptLeaderboards and Statistics
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

No, currently the log.info, log.error, etc. functionality only has a single "level". We're very aware of the need for more debugging options on Cloud Script though, and we'll be addressing that in upcoming sprints.

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.