Skip to content

Commit

Permalink
Added logging of stream exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Aug 11, 2015
1 parent f0ae574 commit 1c10230
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/io/rapidpro/mage/twitter/TwitterStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,13 @@ public void onTrackLimitationNotice(int numberOfLimitedStatuses) {
super.onTrackLimitationNotice(numberOfLimitedStatuses);
}

@Override
public void onException(Exception ex) {
log.error("Exception in Twitter stream", ex);

super.onException(ex);
}

/**
* Background task which fetches potentially missed tweets using the REST API. This happens in a task so the
* Twitter Manager can execute all back-fill tasks sequentially, making it easier to respect the Twitter API
Expand Down

0 comments on commit 1c10230

Please sign in to comment.