Skip to content

Commit

Permalink
concat everything
Browse files Browse the repository at this point in the history
  • Loading branch information
partouf committed Sep 22, 2024
1 parent 851797e commit e511a2c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,12 @@ function main() {
const entry = logging[0];

if (logging.length > 1) {
res.sendStatus(409);
const filename = entry.library + "_" + entry.library_version + "_" + entry.compiler_version + "_" + entry.build_dt + ".txt";
let content = '';
for (const item of logging) {
content = content + item.logging + '\n\n--- More entries ---\n\n';
}
res.header('Content-Disposition', 'attachment; filename="' + filename +'"').send(content);
} else if (entry && entry.library && entry.library_version && entry.compiler_version && entry.build_dt && entry.logging) {
const filename = entry.library + "_" + entry.library_version + "_" + entry.compiler_version + "_" + entry.build_dt + ".txt";
res.header('Content-Disposition', 'attachment; filename="' + filename +'"').send(entry.logging);
Expand Down

0 comments on commit e511a2c

Please sign in to comment.