Browse files

removed logging of potentially sensitive customer data (#20)

1 parent 5948137 commit 5e87280c548608f976975753bee1e82fe8f13e41 @satiatcloudera satiatcloudera committed with mpercy Jul 14, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 flume-sources/src/main/java/com/cloudera/flume/source/TwitterSource.java
View
3 flume-sources/src/main/java/com/cloudera/flume/source/TwitterSource.java
@@ -117,7 +117,8 @@ public void start() {
public void onStatus(Status status) {
// The EventBuilder is used to build an event using the headers and
// the raw JSON of a tweet
- logger.debug(status.getUser().getScreenName() + ": " + status.getText());
+ // shouldn't log possibly sensitive customer data
+ logger.debug("tweet arrived");
headers.put("timestamp", String.valueOf(status.getCreatedAt().getTime()));
Event event = EventBuilder.withBody(

0 comments on commit 5e87280

Please sign in to comment.