MacOS 10.14.6 Mojave.
Node v10.15.3
LocalStack - docker image 0.10.4

When invoking a Lambda from Node.js code.


    const lambda = new Aws.Lambda(creds);
    
    const payload = {};
    
    const clientContext = {
        invokedFunctionArn: this._workerArn
    };
    
    const params = {
        FunctionName: this._workerArn,
        InvocationType: "RequestResponse", // "DryRun",
        LogType: 'Tail', // "None", "Tail"
        ClientContext: JSON.stringify(clientContext),
        Payload: JSON.stringify(payload)
    };
    
    console.log(`DEBUG: Executing lambda ${JSON.stringify(params)}`);
    
    lambda.invoke(params, function (err, data) {
        console.log(`DEBUG: Printing lambda return arguments`);
        console.log(JSON.stringify(arguments));
        console.log(data.LogResult);
    });```
DEBUG: Printing lambda return arguments
{"0":null,"1":{"StatusCode":200,"Payload":"null"}}
undefined
```

Expecting to see the Lambda execution log in `data.LogResult`, but no such object returned,
yet Localstack Cloudwatch logs recorded the execution logs correctly.


```
EVENTS	75	1570381308926.664	+51733/05/27/[$LATEST]629146bb	START RequestId: dbd86068-78c8-1a62-29ca-9c0a4a8580c3 Version: $LATEST	1570381306039
EVENTS	76	1570381308926.664	+51733/05/27/[$LATEST]629146bb	2019-10-06T17:01:47.924Z	dbd86068-78c8-1a62-29ca-9c0a4a8580c3	INFO	DEBUG: LOCALSTACK_HOSTNAME=172.17.0.1	1570381306520
...
EVENTS	79	1570381308926.664	+51733/05/27/[$LATEST]629146bb	END RequestId: dbd86068-78c8-1a62-29ca-9c0a4a8580c3	1570381307961
EVENTS	80	1570381308926.664	+51733/05/27/[$LATEST]629146bb	REPORT RequestId: dbd86068-78c8-1a62-29ca-9c0a4a8580c3	Duration: 16.05 ms	Billed Duration: 100 ms	Memory Size: 1536 MB	Max Memory Used: 57 MB		1570381308442
```

What I'm missing? Why it doesn't return logs on invoke?

Thanks



┆Issue is synchronized with this [Jira Bug](https://localstack.atlassian.net/browse/LOC-125) by [Unito](https://www.unito.io/learn-more)

events = retry(check_expected_lambda_log_events_length, retries=3,
                       sleep=1, function_name=function_name, expected_length=1)
        notification = events[0]['Records'][0]['Sns']
        self.assertIn('Subject', notification)
        self.assertEqual(notification['Subject'], subject)
    def test_lambda_send_message_to_sqs(self):
        function_name = '{}-{}'.format(TEST_LAMBDA_FUNCTION_PREFIX, short_uid())
        queue_name = 'lambda-queue-{}'.format(short_uid())
        sqs_client = aws_stack.connect_to_service('sqs')
        testutil.create_lambda_function(handler_file=TEST_LAMBDA_SEND_MESSAGE_FILE,
                                        func_name=function_name,
                                        runtime=LAMBDA_RUNTIME_PYTHON36)
        queue_url = sqs_client.create_queue(QueueName=queue_name)['QueueUrl']
        event = {
            'message': 'message-from-test-lambda-{}'.format(short_uid()),
            'queue_name': queue_name,
            'region_name': config.DEFAULT_REGION
        }
        self.lambda_client.invoke(
            FunctionName=function_name,
            Payload=json.dumps(event)
        )
        
        def receive_message():
            rs = sqs_client.receive_message(QueueUrl=queue_url, MessageAttributeNames=['All'])
            self.assertGreater(len(rs['Messages']), 0)
            return rs['Messages'][0]
        message = retry(receive_message, retries=3, sleep=2)
        self.assertEqual(message['Body'], event['message'])