diff --git a/README.md b/README.md index 3ecfd9f..e8a9bf8 100644 --- a/README.md +++ b/README.md @@ -32,3 +32,11 @@ jobs: ### Output - `response` Request Response as JSON String + + +### Debug Informations + +Enable Debug mode to get informations about + +- Instance Configuration (Url / Timeout / Headers) +- Request Data (Body / Auth / Method) \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 62e44c1..a5250f6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2632,7 +2632,7 @@ const instanceConfig = { headers: { ...headers, ...customHeaders } } -core.debug(JSON.stringify(instanceConfig)) +core.debug('Instance Configuration: ' + JSON.stringify(instanceConfig)) const instance = axios.create(instanceConfig); @@ -2647,7 +2647,7 @@ const instance = axios.create(instanceConfig); data } - core.debug(JSON.stringify(requestData)) + core.debug('Request Data: ' + JSON.stringify(requestData)) const response = await instance.request(requestData) diff --git a/src/index.js b/src/index.js index 8d230d2..44a22bb 100644 --- a/src/index.js +++ b/src/index.js @@ -36,7 +36,7 @@ const instanceConfig = { headers: { ...headers, ...customHeaders } } -core.debug(JSON.stringify(instanceConfig)) +core.debug('Instance Configuration: ' + JSON.stringify(instanceConfig)) const instance = axios.create(instanceConfig); @@ -51,7 +51,7 @@ const instance = axios.create(instanceConfig); data } - core.debug(JSON.stringify(requestData)) + core.debug('Request Data: ' + JSON.stringify(requestData)) const response = await instance.request(requestData)