awslambda: explicitly specify json-file log driver

This is analogous to #2635.
This commit is contained in:
Andrey Kislyuk 2020-01-22 16:08:42 -08:00 committed by GitHub
parent b54d3b5a11
commit ed81e36faf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -409,6 +409,7 @@ class LambdaFunction(BaseModel):
volumes=["{}:/var/task".format(data_vol.name)],
environment=env_vars,
detach=True,
log_config=docker.types.LogConfig(type=docker.types.LogConfig.types.JSON),
**run_kwargs
)
finally: