mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
more faithfully represent aws lambda python runtime context
This commit is contained in:
parent
47901aea85
commit
c06ae9ebea
@ -31,12 +31,19 @@ class FakeLambdaContext(object):
|
||||
|
||||
@property
|
||||
def memory_limit_in_mb(self):
|
||||
return 1024
|
||||
return '1024'
|
||||
|
||||
@property
|
||||
def aws_request_id(self):
|
||||
return '1234567890'
|
||||
|
||||
@property
|
||||
def log_group_name(self):
|
||||
return '/aws/lambda/' + self.name
|
||||
|
||||
@property
|
||||
def log_stream_name(self):
|
||||
return '2018/09/12/[$' + self.version + ']58419525dade4d17a495dceeeed44708'
|
||||
|
||||
logging.basicConfig()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user