MCPcopy
hub / github.com/serverless/serverless / emitDisabledLog

Function emitDisabledLog

packages/serverless/lib/plugins/python/index.js:361–369  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

359 return false
360
361 const emitDisabledLog = () => {
362 const message =
363 'Skipping built-in python requirements packaging because custom.pythonRequirements.enabled is set to false.'
364 if (log?.info) {
365 log.info(message)
366 } else if (serverless.cli?.log) {
367 serverless.cli.log(message)
368 }
369 }
370
371 if (typeof pythonRequirementsConfig === 'boolean') {
372 if (pythonRequirementsConfig === false) emitDisabledLog()

Callers 1

index.jsFile · 0.85

Calls 2

infoMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…