diff --git a/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp b/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp index 1300702bf0b..e30e9899f4c 100644 --- a/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +++ b/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp @@ -60,8 +60,19 @@ static std::string GetMutationInstructionString( void PrintMutationInstruction( std::string message, ShadowViewMutation const &mutation) { - LOG(ERROR) << message - << " Mutation: " << GetMutationInstructionString(mutation); + [&](std::ostream &stream) -> std::ostream & { + stream << message + << " Mutation: " << GetMutationInstructionString(mutation); + if (mutation.oldChildShadowView.tag != 0) { + stream << " old hash: ##" + << std::hash{}(mutation.oldChildShadowView); + } + if (mutation.newChildShadowView.tag != 0) { + stream << " new hash: ##" + << std::hash{}(mutation.newChildShadowView); + } + return stream; + }(LOG(ERROR)); } void PrintMutationInstructionRelative( std::string message,