Skip to content

Commit d94e813

Browse files
Potential fix for code scanning alert no. 1310: Use of externally-controlled format string
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent fe7c122 commit d94e813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/utils/requestProcessor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ const processRequest = (params) => {
209209
params.qstring.args = JSON.parse(params.qstring.args);
210210
}
211211
catch (SyntaxError) {
212-
console.log('Parse ' + apiPath + ' JSON failed %s', params.req.url, params.req.body);
212+
console.log('Parse %s JSON failed. URL: %s, Body: %s', apiPath, params.req.url, JSON.stringify(params.req.body));
213213
}
214214
}
215215

0 commit comments

Comments
 (0)