Dump logs to stdout instead of stderr to avoid synchronization problems.

This commit is contained in:
Chris Gavin 2021-01-26 09:47:31 +00:00
parent 8705aaff32
commit 94b32884f9
No known key found for this signature in database
GPG key ID: 07F950B80C27E4DA
2 changed files with 2 additions and 2 deletions

2
lib/analyze-action.js generated
View file

@ -78,7 +78,7 @@ async function run() {
for (const entry of entries) {
if (entry.isFile()) {
core.startGroup(`CodeQL Debug Logs - ${language} - ${entry.name}`);
process.stderr.write(fs.readFileSync(path.resolve(dir, entry.name)));
process.stdout.write(fs.readFileSync(path.resolve(dir, entry.name)));
core.endGroup();
}
else if (entry.isDirectory()) {

View file

@ -136,7 +136,7 @@ async function run() {
core.startGroup(
`CodeQL Debug Logs - ${language} - ${entry.name}`
);
process.stderr.write(
process.stdout.write(
fs.readFileSync(path.resolve(dir, entry.name))
);
core.endGroup();