From 189f99eccc66576a8f6e5c095ce3fdf2088f427a Mon Sep 17 00:00:00 2001 From: Spencer Ahrens Date: Wed, 27 Feb 2019 13:30:21 -0800 Subject: [PATCH] Cleanup UITemplates / Fly logging Summary: Kinda spammy Reviewed By: shergin Differential Revision: D14211415 fbshipit-source-id: a8d010f6133d8ec5e109e9d2164ade2c1d996537 --- ReactCommon/fabric/uimanager/UITemplateProcessor.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ReactCommon/fabric/uimanager/UITemplateProcessor.cpp b/ReactCommon/fabric/uimanager/UITemplateProcessor.cpp index 4a245fa252a..b59c3141151 100644 --- a/ReactCommon/fabric/uimanager/UITemplateProcessor.cpp +++ b/ReactCommon/fabric/uimanager/UITemplateProcessor.cpp @@ -57,8 +57,10 @@ SharedShadowNode UITemplateProcessor::runCommand( componentDescriptor->appendChild(parentShadowNode, nodes[tag]); } } else if (opcode == "returnRoot") { - LOG(INFO) - << "(stop) UITemplateProcessor inject serialized 'server rendered' view tree"; + if (DEBUG_FLY) { + LOG(INFO) + << "(stop) UITemplateProcessor inject serialized 'server rendered' view tree"; + } return nodes[command[1].asInt()]; } else if (opcode == "loadNativeBool") { int registerNumber = command[1].asInt(); @@ -105,8 +107,10 @@ SharedShadowNode UITemplateProcessor::buildShadowTree( const ComponentDescriptorRegistry &componentDescriptorRegistry, const NativeModuleRegistry &nativeModuleRegistry, const std::shared_ptr reactNativeConfig) { - LOG(INFO) - << "(strt) UITemplateProcessor inject hardcoded 'server rendered' view tree"; + if (DEBUG_FLY) { + LOG(INFO) + << "(strt) UITemplateProcessor inject hardcoded 'server rendered' view tree"; + } std::string content = jsonStr; for (const auto ¶m : params.items()) {