diff --git a/modules/apps/layout/layout-service/src/main/java/com/liferay/layout/internal/upgrade/v1_4_4/LayoutPrivateLayoutsUpgradeProcess.java b/modules/apps/layout/layout-service/src/main/java/com/liferay/layout/internal/upgrade/v1_4_4/LayoutPrivateLayoutsUpgradeProcess.java index 53d3b73c044539..66fd99aa6f8e45 100644 --- a/modules/apps/layout/layout-service/src/main/java/com/liferay/layout/internal/upgrade/v1_4_4/LayoutPrivateLayoutsUpgradeProcess.java +++ b/modules/apps/layout/layout-service/src/main/java/com/liferay/layout/internal/upgrade/v1_4_4/LayoutPrivateLayoutsUpgradeProcess.java @@ -36,18 +36,18 @@ public LayoutPrivateLayoutsUpgradeProcess( @Override protected void doUpgrade() throws Exception { - String value; + try (LoggingTimer loggingTimer = new LoggingTimer()) { + String value; - if (ReleaseFeatureFlagManagerUtil.isEnabled( - ReleaseFeatureFlag.DISABLE_PRIVATE_LAYOUTS)) { + if (ReleaseFeatureFlagManagerUtil.isEnabled( + ReleaseFeatureFlag.DISABLE_PRIVATE_LAYOUTS)) { - value = Boolean.FALSE.toString(); - } - else { - value = Boolean.TRUE.toString(); - } + value = Boolean.FALSE.toString(); + } + else { + value = Boolean.TRUE.toString(); + } - try (LoggingTimer loggingTimer = new LoggingTimer()) { _companyLocalService.forEachCompanyId( companyId -> { try {