Update logging for debug purposes

This commit is contained in:
Joel Male
2020-08-26 10:25:43 +10:00
parent a2c63f8d08
commit d4413d8be7
9 changed files with 19 additions and 8 deletions
+5 -2
View File
@@ -47,10 +47,13 @@ function run() {
url = core.getInput('url');
headers = (_a = core.getInput('headers')) !== null && _a !== void 0 ? _a : '';
body = (_b = core.getInput('body')) !== null && _b !== void 0 ? _b : '';
core.info("Sending webhook request to " + url + "...");
core.info("Sending webhook request to " + url);
core.debug((new Date()).toTimeString());
http_1.http.make(url, headers, body)
.then(function (res) { return core.setOutput('statusCode', res.status); });
.then(function (res) {
core.setOutput('statusCode', res.status);
core.info("Received status code: " + res.status);
});
core.info((new Date()).toTimeString());
}
catch (error) {