style: コメント修正
This commit is contained in:
parent
a058ef2d75
commit
cada4f7b09
@ -19,7 +19,7 @@ def lambda_handler(event, context):
|
||||
log_event_str = gzip.GzipFile(fileobj=BytesIO(decoded_gzip_data)).read()
|
||||
log_event = json.loads(log_event_str)
|
||||
|
||||
# SNSのSubjectパラメータは100文字までという制限があるため、100文字に切り出す
|
||||
# SNSのSubjectパラメータは100文字までという制限があるため、100文字に切り出す(切り捨てた分は「...」に変換)
|
||||
subject = f'Detect Error(or Warning) in {log_event.get("logGroup")}'
|
||||
subject = subject[:97] + '...' if len(subject) > 100 else subject
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user