Skip to content

Conversation

@rjlohan
Copy link
Contributor

@rjlohan rjlohan commented Jul 16, 2020

Issue #, if available: #209

Description of changes: Adding newline to LambdaLogPublisher so that logs are intelligible in contract test output in SAM Local

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

Adding newline to LambdaLogPublisher so that logs are intelligible in contract test output in SAM Local
@rjlohan rjlohan self-assigned this Jul 16, 2020
@rjlohan rjlohan requested review from anshikg and johnttompkins July 16, 2020 20:40
@rjlohan rjlohan added the enhancement New feature or request label Jul 16, 2020
@Override
protected void publishMessage(String message) {
this.logger.log(message);
this.logger.log(String.format("%s%n", message));
Copy link
Contributor

Choose a reason for hiding this comment

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

%n or \n?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pre-commit rules want it this way.

@rjlohan rjlohan merged commit 573aec2 into aws-cloudformation:master Jul 20, 2020
@rjlohan rjlohan deleted the logging-tweak branch July 20, 2020 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants