From a07026d075191f80720fb6741347d18892bf1258 Mon Sep 17 00:00:00 2001 From: Andy Street Date: Fri, 22 Jul 2016 06:12:23 -0700 Subject: [PATCH] Put setChildren debug log in DEBUG clause Summary: Missed wrapping this previously :x Closes https://github.com/facebook/react-native/pull/8930 Reviewed By: foghina Differential Revision: D3593226 Pulled By: astreet fbshipit-source-id: aea05a6fe7a806d0e31bb486d3de90fe18f2c15f --- .../com/facebook/react/uimanager/UIManagerModule.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java index b04af822a..033ea83e0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java @@ -264,9 +264,11 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements public void setChildren( int viewTag, ReadableArray childrenTags) { - FLog.d( - ReactConstants.TAG, - "(UIManager.setChildren) tag: " + viewTag + ", children: " + childrenTags); + if (DEBUG) { + FLog.d( + ReactConstants.TAG, + "(UIManager.setChildren) tag: " + viewTag + ", children: " + childrenTags); + } mUIImplementation.setChildren(viewTag, childrenTags); }