Skip to content

Commit

Permalink
feat: Improved pip failure logging (#813)
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Lyons <[email protected]>
  • Loading branch information
babyhuey and Justin Lyons authored Feb 10, 2024
1 parent 1b0faae commit 787b479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pip.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,8 @@ async function installRequirements(targetFolder, pluginInstance) {
}

if (log) {
log.info(`Stdout: ${e.stdoutBuffer}`);
log.info(`Stderr: ${e.stderrBuffer}`);
log.error(`Stdout: ${e.stdoutBuffer}`);
log.error(`Stderr: ${e.stderrBuffer}`);
} else {
serverless.cli.log(`Stdout: ${e.stdoutBuffer}`);
serverless.cli.log(`Stderr: ${e.stderrBuffer}`);
Expand Down

0 comments on commit 787b479

Please sign in to comment.