Skip to content

Commit

Permalink
Group log messages while uploading results
Browse files Browse the repository at this point in the history
  • Loading branch information
adityasharad committed May 20, 2021
1 parent f6afc06 commit f6b5223
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/upload-lib.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/upload-lib.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/upload-lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ async function uploadFiles(
mode: util.Mode,
logger: Logger
): Promise<UploadStatusReport> {
logger.info(`Uploading sarif files: ${JSON.stringify(sarifFiles)}`);
logger.startGroup('Uploading results')
logger.info(`Processing sarif files: ${JSON.stringify(sarifFiles)}`);

if (mode === "actions") {
// This check only works on actions as env vars don't persist between calls to the runner
Expand Down Expand Up @@ -403,6 +404,8 @@ async function uploadFiles(
// Make the upload
await uploadPayload(payload, repositoryNwo, apiDetails, mode, logger);

logger.endGroup();

return {
raw_upload_size_bytes: rawUploadSizeBytes,
zipped_upload_size_bytes: zippedUploadSizeBytes,
Expand Down

0 comments on commit f6b5223

Please sign in to comment.