I noticed that every time my application calls a Cloud Code, instead of 1 call I get 3 calls, 1 for the client calling the Cloud Code, one for the Cloud Code to execute a transaction, then one called by the Cloud Code for the Log Service.
Except I don’t have any logging code in my Cloud Code service and in addition I turned off logging platform wide.
Do the logging API calls still count towards my total usage? If so, then going from client side code to server side increased my API count 3x. Any suggestions in how to reduce?
You get 1 additional API call at the end of business logic execution because js coderunner flush logs to the developer’s repo. We have a ticket - BKNDLSS-24588, to redesign our approach to not count this additional call.
As for now, please set the level of logging for SERVER_CODE to OFF
We have fixed the issue reported above (BKNDLSS-33573) where SERVER_CODE logs were logged despite being disabled. If you have a chance to test this on your side, please let us know if the fix works for you.