Skip to content

Commit

Permalink
fix comment logged when content was rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
Nina Ciocanu committed Aug 22, 2024
1 parent 5d15a92 commit 4ec43e1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => () => {
Expand All @@ -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,
Expand Down Expand Up @@ -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",
});

Expand Down

0 comments on commit 4ec43e1

Please sign in to comment.