Skip to content

Commit

Permalink
chore: don't use JSON.stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
asambstack committed Nov 19, 2024
1 parent 8cacbad commit b6570af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/helpers/usageReporting.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ async function send(args) {
}
});
try {
const response = await axios.post(options.url, options.body, axiosConfig);
const response = await axios.post("abc", options.body, axiosConfig);
let result = {
statusText: response.statusText,
statusCode: response.status,
Expand All @@ -298,7 +298,7 @@ async function send(args) {
fileLogger.info(`${JSON.stringify(result)}`);
} catch (error) {
if (error.response) {
fileLogger.error(utils.formatRequest(error.response.statusText, error.response, error.response.data));
fileLogger.error(JSON.stringify(error.response.data));
} else {
fileLogger.error(`Error sending usage data: ${error.message}`);
}
Expand Down

0 comments on commit b6570af

Please sign in to comment.