MCPcopy Create free account
hub / github.com/serverless/serverless / #handleBuildOutput

Method #handleBuildOutput

packages/util/src/docker/index.js:565–569  ·  view source on GitHub ↗

* Handles Docker build output and error logging * @param {Object} params - Parameters for build output handling * @param {Array } params.buildOutput - Array to store build output lines * @param {string} params.data - The data/log line to process * @param {Function} params.logger -

({ buildOutput, data })

Source from the content-addressed store, hash-verified

563 * @param {Function} params.logger - Logger instance to use
564 */
565 #handleBuildOutput({ buildOutput, data }) {
566 const logLine = data.toString()
567 buildOutput.push(logLine)
568 this.logger.debug(logLine)
569 }
570
571 /**
572 * Creates appropriate error based on build output

Callers 3

#buildUsingBuildPackMethod · 0.95
buildImageAwsLambdaMethod · 0.95

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected