Skip to content

Commit 2c123cd

Browse files
Potential fix for pull request finding 'CodeQL / Log injection'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 3a579a5 commit 2c123cd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

fixtures/flight/server/global.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,7 @@ async function renderApp(req, res, next) {
227227
res.end();
228228
});
229229
} catch (e) {
230-
const safeStack = sanitizeForLog(e && e.stack ? e.stack : e);
231-
console.error(`Failed to proxy request: ${safeStack}`);
230+
console.error('Failed to proxy request.');
232231
res.statusCode = 500;
233232
res.end();
234233
}

0 commit comments

Comments
 (0)