Skip to content

Conversation

Observer42
Copy link
Contributor

@Observer42 Observer42 commented Mar 30, 2019

Issue #98

Description of changes:

Change log level from debug to error for errors returned by handler. With this change, programs with default log level (log::Level::Info) will display error in CloudWatch.

(The log level is usually configured in fn main:)

fn main() -> Result<(), Box<dyn Error>> {
    simple_logger::init_with_level(log::Level::Info)?;
    lambda!(handler);
    Ok(())
}

By submitting this pull request

  • I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • I confirm that I've made a best effort attempt to update all relevant documentation.

Copy link
Contributor

@davidbarsky davidbarsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for these changes, I'm sorry about the delay! I'll get a release out later today.

@davidbarsky davidbarsky merged commit b97d112 into awslabs:master Apr 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants