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()) {