Reduce logcat spew when checking packager status

Summary: public

The common case is to hit an error when the server isn't running. We shouldn't spew a stack trace for it.

Reviewed By: foghina

Differential Revision: D2685706

fb-gh-sync-id: d230af170b92a05452f04a90f23172f15e62dce6
This commit is contained in:
Andy Street 2015-11-24 03:34:41 -08:00 committed by facebook-github-bot-7
parent c3963fdacd
commit 05c79059ae
1 changed files with 4 additions and 1 deletions

View File

@ -217,7 +217,10 @@ public class DevServerHelper {
new Callback() {
@Override
public void onFailure(Request request, IOException e) {
FLog.e(ReactConstants.TAG, "IOException requesting status from packager", e);
FLog.w(
ReactConstants.TAG,
"The packager does not seem to be running as we got an IOException requesting " +
"its status: " + e.getMessage());
callback.onPackagerStatusFetched(false);
}