Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Adjust message format, for todd
Browse files Browse the repository at this point in the history
  • Loading branch information
fieldju committed Nov 10, 2017
1 parent 8ddf5a5 commit 062c9b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cerberus-cloudfront-lambda/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version '1.2.2'
version '1.3.0'

dependencies {
compile group: 'com.amazonaws', name: 'aws-lambda-java-core', version: '1.1.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ public void processLogEvents(List<CloudFrontLogEvent> events, CloudFrontLogHandl
StringBuilder sb = new StringBuilder("Cloud Front Log Event Handler - TLS Verification Processor run summary");
sb.append('\n').append("Running Environment: ").append(config.getEnv()).append('\n');
nonAcceptableEvents.forEach(event -> {
sb.append("IP: ").append(event.getCIp()).append('\n')
.append("User Agent: ").append(StringUtils.substring(event.getcsUserAgent(), 0, 30)).append('\n')
.append("Path: ").append(event.getCsUriStem()).append('\n')
.append("TLS Version: ").append(event.getSslProtocol()).append('\n').append('\n');
sb
.append("TLS Version: ").append(event.getSslProtocol())
.append(", Path: ").append(event.getCsUriStem())
.append(", IP: ").append(event.getCIp())
.append(", User Agent: ").append(StringUtils.substring(event.getcsUserAgent(), 0, 30))
.append('\n');
});

String msg = sb.toString();
Expand Down

0 comments on commit 062c9b9

Please # to comment.