From 58b5145e9ad42c530bd1247032081fb456148698 Mon Sep 17 00:00:00 2001 From: Courtney Myers Date: Tue, 26 Nov 2024 15:50:04 -0500 Subject: [PATCH] Log the BAP connection to help diagnose connection issues with the BAP --- app/server/app/utilities/bap.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/app/server/app/utilities/bap.js b/app/server/app/utilities/bap.js index 35022b90..4dc2819a 100644 --- a/app/server/app/utilities/bap.js +++ b/app/server/app/utilities/bap.js @@ -1922,16 +1922,12 @@ function verifyBapConnection(req, { name, args }) { return setupConnection(req).then(() => callback()); } - return bapConnection - .identity((err, _res) => { - if (err) { - const logMessage = `BAP connection identity error.`; - log({ level: "info", message: logMessage, req }); + return bapConnection.identity().then((identityInfo) => { + const logMessage = `BAP Connection Info`; + log({ level: "info", message: logMessage, req, otherInfo: identityInfo }); - return setupConnection(req).then(() => callback()); - } - }) - .then((_res) => callback()); + return callback(); + }); } /**