Skip to content

Commit

Permalink
refactor(variable-get): Add a bit more verbose logging about Sense an…
Browse files Browse the repository at this point in the history
…d engine versions
  • Loading branch information
Göran Sander committed Mar 10, 2024
1 parent 6615afa commit 3bbcf91
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lib/cmd/getvariable.js
Expand Up @@ -82,9 +82,18 @@ const getVariable = async (options) => {
}

let engineVersion;
let productVersion;
let qTProduct;
let qvVersion;
try {
engineVersion = await global.engineVersion();
logger.verbose(`Server ${options.host} has engine version ${engineVersion.qComponentVersion}.`);

productVersion = await global.productVersion();
logger.verbose(`Server ${options.host} has product version ${productVersion}.`);

qTProduct = await global.qTProduct();
logger.verbose(`Server ${options.host} product name: ${qTProduct}.`);
} catch (err) {
catchLog(`Error getting engine version from server ${options.host}`, err);
process.exit(1);
Expand Down

0 comments on commit 3bbcf91

Please sign in to comment.