Class: LambdaLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/aws_lambda_ric/lambda_logger.rb

Overview

Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.

Class Method Summary collapse

Class Method Details

.log_error(exception:, message: nil) ⇒ Object



5
6
7
8
# File 'lib/aws_lambda_ric/lambda_logger.rb', line 5

def log_error(exception:, message: nil)
  puts message if message
  puts JSON.pretty_unparse(exception.to_lambda_response)
end