Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the aspnet core logging infrastructure for logging #304

Merged
merged 2 commits into from
Sep 25, 2018

Conversation

szilvaa
Copy link

@szilvaa szilvaa commented Aug 10, 2018

This makes it easier to suppress these messages.

Issue #, if available: None

Description of changes:
Use an ILogger to log messages from APIGatewayProxyFunction. Use LogDebug since these messages are really for debugging and not generally useful for a production service.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Member

@normj normj left a comment

Choose a reason for hiding this comment

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

I like this change but it seems like logging in the catch block should be LogError and not LogDebug. If those are hit there is a good chance something went wrong in this library.

As pointed out by reviewer (aws#304) this is more appriopriate.
@szilvaa
Copy link
Author

szilvaa commented Aug 10, 2018

Good point. I've fixed that.

@szilvaa
Copy link
Author

szilvaa commented Aug 16, 2018

@normj Can you please take a peek at this again? Thanks!

@normj
Copy link
Member

normj commented Aug 17, 2018

The PR looks good and I'm going to merge it in. I'm just trying to finish up another project right now and then I'll get this merged and released.

@normj
Copy link
Member

normj commented Sep 14, 2018

Thanks for the pull request. I have the change staged in the dev branch to go out with the next release.

@normj normj merged commit f5c45c9 into aws:master Sep 25, 2018
@normj
Copy link
Member

normj commented Sep 25, 2018

Version 2.1.0 was just released with this pull request. Thanks for the effort!

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.

None yet

3 participants