Skip to content

Commit

Permalink
Converted healthcheck log to string
Browse files Browse the repository at this point in the history
  • Loading branch information
AkhileshNS committed Jul 3, 2020
1 parent 610756d commit d1f98b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ let heroku = {
if (heroku.healthcheck) {
try {
const res = await p(heroku.healthcheck);
console.log(res.body);
console.log(res.body.toString());
} catch (err) {
console.log(err.message);
core.setFailed(
Expand Down
9 changes: 6 additions & 3 deletions scripts/test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
for (let key in process.env) {
console.log(key + "=" + process.env[key]);
}
const p = require("phin");

(async () => {
const res = await p("https://akhileshns-hd-test-1.herokuapp.com/");
console.log(res.body.toString());
})();

0 comments on commit d1f98b6

Please sign in to comment.