mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Refactor Log to Flog in Fabric
Reviewed By: shergin Differential Revision: D8363593 fbshipit-source-id: fb4104b66ef3d50d4101c39a1bf4515e6d0ecd19
This commit is contained in:
committed by
Facebook Github Bot
parent
1ffb2b63be
commit
e773b36990
@@ -8,8 +8,11 @@ package com.facebook.react.uimanager;
|
||||
|
||||
import static java.lang.System.arraycopy;
|
||||
|
||||
import android.util.Log;
|
||||
import com.facebook.common.logging.FLog;
|
||||
import com.facebook.debug.holder.PrinterHolder;
|
||||
import com.facebook.debug.tags.ReactDebugOverlayTags;
|
||||
import com.facebook.infer.annotation.Assertions;
|
||||
import com.facebook.react.common.build.ReactBuildConfig;
|
||||
import com.facebook.react.uimanager.annotations.ReactPropertyHolder;
|
||||
import com.facebook.yoga.YogaAlign;
|
||||
import com.facebook.yoga.YogaBaselineFunction;
|
||||
@@ -59,7 +62,7 @@ import javax.annotation.Nullable;
|
||||
@ReactPropertyHolder
|
||||
public class ReactShadowNodeImpl implements ReactShadowNode<ReactShadowNodeImpl> {
|
||||
|
||||
private static final boolean DEBUG = true;
|
||||
private static final boolean DEBUG = ReactBuildConfig.DEBUG || PrinterHolder.getPrinter().shouldDisplayLogMessage(ReactDebugOverlayTags.FABRIC_UI_MANAGER);
|
||||
private static final String TAG = ReactShadowNodeImpl.class.getSimpleName();
|
||||
private static final YogaConfig sYogaConfig;
|
||||
static {
|
||||
@@ -75,7 +78,7 @@ public class ReactShadowNodeImpl implements ReactShadowNode<ReactShadowNodeImpl>
|
||||
Assertions.assertNotNull(oldReactShadowNode);
|
||||
|
||||
if (DEBUG) {
|
||||
Log.d(
|
||||
FLog.d(
|
||||
TAG,
|
||||
"YogaNode started cloning: oldYogaNode: " + oldReactShadowNode + " - parent: "
|
||||
+ parentReactShadowNode + " index: " + childIndex);
|
||||
|
||||
Reference in New Issue
Block a user