C++ style enums 5/N: LogLevel (#1387)
Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1387 X-link: https://github.com/facebook/react-native/pull/39447 This converts usages of YGLogLevel to LogLevel Reviewed By: rozele Differential Revision: D49270695 fbshipit-source-id: 2ba5b4f2b0af93fef89dbbb2ce54c2f486670aac
This commit is contained in:
committed by
Facebook GitHub Bot
parent
6f5eaefc51
commit
70954bbda5
@@ -2526,14 +2526,14 @@ bool calculateLayoutInternal(
|
||||
if (gPrintChanges && gPrintSkips) {
|
||||
yoga::log(
|
||||
node,
|
||||
YGLogLevelVerbose,
|
||||
LogLevel::Verbose,
|
||||
"%s%d.{[skipped] ",
|
||||
spacerWithLength(depth),
|
||||
depth);
|
||||
node->print();
|
||||
yoga::log(
|
||||
node,
|
||||
YGLogLevelVerbose,
|
||||
LogLevel::Verbose,
|
||||
"wm: %s, hm: %s, aw: %f ah: %f => d: (%f, %f) %s\n",
|
||||
measureModeName(widthMeasureMode, performLayout),
|
||||
measureModeName(heightMeasureMode, performLayout),
|
||||
@@ -2547,7 +2547,7 @@ bool calculateLayoutInternal(
|
||||
if (gPrintChanges) {
|
||||
yoga::log(
|
||||
node,
|
||||
YGLogLevelVerbose,
|
||||
LogLevel::Verbose,
|
||||
"%s%d.{%s",
|
||||
spacerWithLength(depth),
|
||||
depth,
|
||||
@@ -2555,7 +2555,7 @@ bool calculateLayoutInternal(
|
||||
node->print();
|
||||
yoga::log(
|
||||
node,
|
||||
YGLogLevelVerbose,
|
||||
LogLevel::Verbose,
|
||||
"wm: %s, hm: %s, aw: %f ah: %f %s\n",
|
||||
measureModeName(widthMeasureMode, performLayout),
|
||||
measureModeName(heightMeasureMode, performLayout),
|
||||
@@ -2582,7 +2582,7 @@ bool calculateLayoutInternal(
|
||||
if (gPrintChanges) {
|
||||
yoga::log(
|
||||
node,
|
||||
YGLogLevelVerbose,
|
||||
LogLevel::Verbose,
|
||||
"%s%d.}%s",
|
||||
spacerWithLength(depth),
|
||||
depth,
|
||||
@@ -2590,7 +2590,7 @@ bool calculateLayoutInternal(
|
||||
node->print();
|
||||
yoga::log(
|
||||
node,
|
||||
YGLogLevelVerbose,
|
||||
LogLevel::Verbose,
|
||||
"wm: %s, hm: %s, d: (%f, %f) %s\n",
|
||||
measureModeName(widthMeasureMode, performLayout),
|
||||
measureModeName(heightMeasureMode, performLayout),
|
||||
@@ -2609,7 +2609,7 @@ bool calculateLayoutInternal(
|
||||
if (layout->nextCachedMeasurementsIndex ==
|
||||
LayoutResults::MaxCachedMeasurements) {
|
||||
if (gPrintChanges) {
|
||||
yoga::log(node, YGLogLevelVerbose, "Out of cache entries!\n");
|
||||
yoga::log(node, LogLevel::Verbose, "Out of cache entries!\n");
|
||||
}
|
||||
layout->nextCachedMeasurementsIndex = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user