Skip to content

Commit

Permalink
printing the response of the monitor API call
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishkurmi committed Mar 18, 2024
1 parent 6c3b1c9 commit 476edf4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dist/pre/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/pre/index.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ import { isGithubHosted, isTLSEnabled } from "./tls-inspect";
encoding: "utf8",
}
);

const responseBody: string = await resp.readBody();
console.log(`Monitor API response: ${responseBody}`); // Log the response body
} catch (e) {
console.log(`error in connecting to ${api_url}: ${e}`);
}
Expand Down

0 comments on commit 476edf4

Please sign in to comment.