From 7eeed54bc914c42816e4600cc9777c64a89d34d8 Mon Sep 17 00:00:00 2001 From: Kai Rohwer Date: Tue, 3 Dec 2024 17:59:50 +0100 Subject: [PATCH] Fix engine build --- src/engine/universal/core/src/messaging-setup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/universal/core/src/messaging-setup.js b/src/engine/universal/core/src/messaging-setup.js index d98632a21..5ee88420e 100644 --- a/src/engine/universal/core/src/messaging-setup.js +++ b/src/engine/universal/core/src/messaging-setup.js @@ -89,7 +89,7 @@ module.exports = { logging.registerCallback(async (obj, log) => { try { - if (!logGuard(log?.level)) return; + if (!logGuard(log && log.level)) return; const sentMessages = []; const print = `[${log.level.toUpperCase()}] ${log.moduleName}${obj.definitionId || ''} ${log.msg}`;