From ed81e36faffda8b1ab4a5d3176fc65307fe8a34d Mon Sep 17 00:00:00 2001 From: Andrey Kislyuk Date: Wed, 22 Jan 2020 16:08:42 -0800 Subject: [PATCH] awslambda: explicitly specify json-file log driver This is analogous to #2635. --- moto/awslambda/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/moto/awslambda/models.py b/moto/awslambda/models.py index 38ff81fb2..e43f8e5d0 100644 --- a/moto/awslambda/models.py +++ b/moto/awslambda/models.py @@ -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: