-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Console.log for Cloud Code is only called twice and no further. #2390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
console.log() is a built in JS function so not sure if this is an issue with parse-server. Perhaps your hosting solution is not showing all logs? How are you hosting, and how are you viewing logs? Getting two different results is weird. Are you sure that a load balancer is not hitting app servers with different versions of code deployed? How are you calling your server? Could be an issue with a client SDK or implementation. |
Also, to collect your logs from cloud code and make them appear in the parse-dashboard logs, you should use |
So this test was complete on an iOS app calling the cloud code function. The parse server is hosted on heroku. Viewing the logs via terminal heroku logs or via the heroku logs page for the app, supplied the same result. |
as @steven-supersolid is mentioning, this is probably heroku throttling the log outputs... there's nothing mutating the node provided console module in parse-server AFAIK. |
Hello,
I am testing Cloud Code and therefore adding multiple console.log commands. I have found that if there are two logs immediately after each other no further lines are called in the method.
Here is an example:
Checking the logs this is all that is received:
In fact sometimes I also see strange logging for example missing 'Test 3'.
Sometimes the result is returned as nil and sometimes the optional('Hi') as expected.
Any reason for this? Thanks
The text was updated successfully, but these errors were encountered: