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)

request_id = long_uid()
        log_output = 'START %s: Lambda %s started via "local" executor ...' % (request_id, func_arn)
        
        for stream in (c.stdout(), c.stderr()):
            if stream:
                log_output += ('\n' if log_output else '') + stream
        log_output += '\nEND RequestId: %s' % request_id
        log_output += '\nREPORT RequestId: %s Duration: %s ms' % (request_id, int((end_time - start_time) * 1000))
        
        _store_logs(func_details, log_output)
        result = result.result if isinstance(result, InvocationResult) else result
        invocation_result = InvocationResult(result, log_output=log_output)
        return invocation_result
    def execute_java_lambda(self, event, context, main_file, func_details=None):
        handler = func_details.handler
        opts = config.LAMBDA_JAVA_OPTS if config.LAMBDA_JAVA_OPTS else ''
        event_file = EVENT_FILE_PATTERN.replace('*', short_uid())
        save_file(event_file, json.dumps(json_safe(event)))
        TMP_FILES.append(event_file)
        class_name = handler.split('::')[0]
        classpath = '%s:%s:%s' % (main_file, Util.get_java_classpath(main_file), LAMBDA_EXECUTOR_JAR)
        cmd = 'java %s -cp %s %s %s %s' % (opts, classpath, LAMBDA_EXECUTOR_CLASS, class_name, event_file)
        LOG.warning(cmd)
        result = self.run_lambda_executor(cmd, func_details=func_details)
        return result
class Util:
    debug_java_port = False
    @classmethod
    def get_java_opts(cls):