Skip to content

Console.log for Cloud Code is only called twice and no further. #2390

Closed
@StuartMorris0

Description

@StuartMorris0

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:

Parse.Cloud.define('testconsole', function(req, res) {
    console.log('Test hello cloud code function was called.');
    console.log('Test 2.');
    console.log('Test 3');
    console.log('Test 4');
    res.success('Hi');
});

Checking the logs this is all that is received:

2016-07-25T22:29:02.517625+00:00 app[web.1]: Test hello cloud code function was called.
2016-07-25T22:29:02.517775+00:00 app[web.1]: Test 2.

In fact sometimes I also see strange logging for example missing 'Test 3'.

2016-07-25T22:29:02.517625+00:00 app[web.1]: Test hello cloud code function was called.
2016-07-25T22:29:02.517775+00:00 app[web.1]: Test 2.
2016-07-25T22:29:02.517831+00:00 app[web.1]: Test 4

Sometimes the result is returned as nil and sometimes the optional('Hi') as expected.
Any reason for this? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions