From 4ec43e1e8b510492739d86f8ad9fbed900265f3e Mon Sep 17 00:00:00 2001 From: Nina Ciocanu Date: Thu, 22 Aug 2024 15:11:18 +0300 Subject: [PATCH] fix comment logged when content was rendered --- .../Personalization/handlers/createProcessPropositions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Personalization/handlers/createProcessPropositions.js b/src/components/Personalization/handlers/createProcessPropositions.js index 25435cfed..6c47136a2 100644 --- a/src/components/Personalization/handlers/createProcessPropositions.js +++ b/src/components/Personalization/handlers/createProcessPropositions.js @@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag governing permissions and limitations under the License. */ -import {groupBy} from "../../../utils/index.js"; +import { groupBy } from "../../../utils/index.js"; export default ({ schemaProcessors, logger }) => { const wrapRenderWithLogging = (render, item) => () => { @@ -29,7 +29,7 @@ export default ({ schemaProcessors, logger }) => { status: "rendering-failed", detail: { propositionDetails: item.getProposition().getNotification(), - item: item.toJSON() + item: item.toJSON(), }, error, message: warning, @@ -201,8 +201,8 @@ export default ({ schemaProcessors, logger }) => { const propsByScope = groupBy(renderedPropositions, (p) => p.scope); logger.logOnContentRendering({ status: "rendering-succeeded", - detail: {...propsByScope}, - message: `Scopes: ${propsByScope} successfully executed.`, + detail: { ...propsByScope }, + message: `Scopes: ${JSON.stringify(propsByScope)} successfully executed.`, logLevel: "info", });