diff --git a/README.md b/README.md index ef8e06ce5..257c30c5b 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,6 @@ All CLI options are optional: --noStripTrailingSlashInUrl Don't strip trailing slash from http routes. --noTimeout -t Disables the timeout feature. --prefix -p Adds a prefix to every path, to send your requests to http://localhost:3000/[prefix]/[your_path] instead. Default: '' ---printOutput Turns on logging of your lambda outputs in the terminal. --reloadHandler Reloads handler with each request. --resourceRoutes Turns on loading of your HTTP proxy settings from serverless.yml --useChildProcesses [This option is deprecated] Run handlers in a child process. diff --git a/src/config/commandOptions.js b/src/config/commandOptions.js index 87ea22e1b..499eea8d9 100644 --- a/src/config/commandOptions.js +++ b/src/config/commandOptions.js @@ -118,10 +118,6 @@ export default { usage: 'Adds a prefix to every path, to send your requests to http://localhost:3000/prefix/[your_path] instead.', }, - printOutput: { - type: 'boolean', - usage: 'Outputs your lambda response to the terminal.', - }, reloadHandler: { type: 'boolean', usage: 'Reloads handler with each request.', diff --git a/src/config/defaultOptions.js b/src/config/defaultOptions.js index 2eff2cfd8..4a069b737 100644 --- a/src/config/defaultOptions.js +++ b/src/config/defaultOptions.js @@ -26,7 +26,6 @@ export default { noStripTrailingSlashInUrl: false, noTimeout: false, prefix: '', - printOutput: false, reloadHandler: false, resourceRoutes: false, useChildProcesses: false, diff --git a/src/events/http/HttpServer.js b/src/events/http/HttpServer.js index 89dbc6fed..1a518e59d 100644 --- a/src/events/http/HttpServer.js +++ b/src/events/http/HttpServer.js @@ -894,20 +894,6 @@ export default class HttpServer { } } - let whatToLog = result - - try { - whatToLog = stringify(result) - } catch { - // nothing - } finally { - if (this.#options.printOutput) { - log.notice( - err ? `Replying ${statusCode}` : `[${statusCode}] ${whatToLog}`, - ) - } - } - return response } }