From 05c79059aefdd60e813223319abd9da564137253 Mon Sep 17 00:00:00 2001 From: Andy Street Date: Tue, 24 Nov 2015 03:34:41 -0800 Subject: [PATCH] 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 --- .../java/com/facebook/react/devsupport/DevServerHelper.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java index 2db8f0b01..1ba9b96e3 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java @@ -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); }