Skip to content

Commit 573aec2

Browse files
author
RJ Lohan
authored
Adding newlines to logger (#290)
Adding newline to LambdaLogPublisher so that logs are intelligible in contract test output in SAM Local
1 parent 2d6ef33 commit 573aec2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/software/amazon/cloudformation/loggers/LambdaLogPublisher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ public LambdaLogPublisher(final LambdaLogger logger,
2828

2929
@Override
3030
protected void publishMessage(String message) {
31-
this.logger.log(message);
31+
this.logger.log(String.format("%s%n", message));
3232
}
3333
}

0 commit comments

Comments
 (0)