Skip to content

Commit

Permalink
/deploy sit
Browse files Browse the repository at this point in the history
  • Loading branch information
jbyrne committed May 30, 2024
1 parent 2be99c6 commit 614f4c0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions server/client/harmony.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const fetch = require("node-fetch");
const config = require("../config/config-loader");
const { logger } = require('../util/logger');

const baseUrl = config.HARMONY_BASE_URL;

Expand Down Expand Up @@ -42,6 +43,18 @@ async function subset(job, accessToken) {
},
body: formData
});
// log harmony request
const message = {
message: "harmony subset request url",
url,
method: 'POST',
headers: {
Authorization: `Bearer ${accessToken}`,
},
body: formData
};
logger.debug(message);

text = await response.text();
} catch (error) {
throw new Error("Harmony.subset() - Error fetching -> " + error.message);
Expand Down

0 comments on commit 614f4c0

Please sign in to comment.