Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmarrero committed Jan 23, 2024
1 parent 4addf72 commit ad76d75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/EnvoyAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,11 +406,13 @@ class EnvoyAPI {
* @returns {Promise<{}>}
*/
async setPluginInstallConfig(installId, config = {}) {
console.log(`pulling config for ${installId}`);
const body = await this.request({
method: 'PUT',
url: `/api/v2/plugin-services/installs/${installId}/config`,
body: config,
}).catch((error) => {
console.log(`encountered error for ${installId}`);
return EnvoyAPI.safeRequestsError(error);
});

Expand Down Expand Up @@ -545,6 +547,7 @@ class EnvoyAPI {
}

static safeRequestsError(error) {
console.log(`constructing error`);
const safeError = {
code: error.code ?? error.statusCode,
message: error.message,
Expand Down

0 comments on commit ad76d75

Please sign in to comment.