Skip to content

Commit

Permalink
Stopped logging SocketTimeoutExceptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jguerinet committed Jan 29, 2016
1 parent e7f13c6 commit 0500baa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/app.iml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@
<orderEntry type="library" exported="" name="butterknife-7.0.1" level="project" />
<orderEntry type="library" exported="" name="library-1.0.19" level="project" />
<orderEntry type="library" exported="" name="okio-1.6.0" level="project" />
<orderEntry type="library" exported="" name="jsoup-1.8.3" level="project" />
<orderEntry type="library" exported="" name="picasso-2.5.2" level="project" />
<orderEntry type="library" exported="" name="jsoup-1.8.3" level="project" />
<orderEntry type="library" exported="" name="play-services-base-8.3.0" level="project" />
<orderEntry type="library" exported="" name="play-services-measurement-8.3.0" level="project" />
<orderEntry type="library" exported="" name="retrofit-1.8.0" level="project" />
Expand Down
6 changes: 5 additions & 1 deletion app/src/main/java/ca/appvelopers/mcgillmobile/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import com.twitter.sdk.android.core.TwitterAuthConfig;
import com.twitter.sdk.android.tweetcomposer.TweetComposer;

import java.net.SocketTimeoutException;
import java.util.List;

import ca.appvelopers.mcgillmobile.model.Course;
Expand Down Expand Up @@ -137,7 +138,10 @@ protected void log(String message) {

@Override
protected void logException(Throwable t) {
Crashlytics.logException(t);
//Don't log SocketTimeoutExceptions
if (!(t instanceof SocketTimeoutException)) {
Crashlytics.logException(t);
}
}
});
}
Expand Down

0 comments on commit 0500baa

Please sign in to comment.