From deca999183bffa6fd72a4dfb04a9557b7a26a5b9 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 3 Jul 2023 16:01:54 +0100 Subject: [PATCH] Allowing logWarn to take an object for warning. --- packages/backend-core/src/logging/alerts.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend-core/src/logging/alerts.ts b/packages/backend-core/src/logging/alerts.ts index 625ecfcf15..b7173bc436 100644 --- a/packages/backend-core/src/logging/alerts.ts +++ b/packages/backend-core/src/logging/alerts.ts @@ -21,6 +21,6 @@ export function logAlertWithInfo( logAlert(message, error) } -export function logWarn(message: string) { - console.warn(`bb-warn: ${message}`) +export function logWarn(message: string, e?: any) { + console.warn(`bb-warn: ${message}`, e) }