Skip to content

Commit

Permalink
fix!: remove hide stack traces option
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Sep 3, 2022
1 parent 6ab3928 commit 1820771
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ All CLI options are optional:
--dockerNetwork The network that the Docker container will connect to
--dockerReadOnly Marks if the docker code layer should be read only. Default: true
--enforceSecureCookies Enforce secure cookies
--hideStackTraces Hide the stack trace on lambda failure. Default: false
--host -o Host name to listen on. Default: localhost
--httpPort Http port to listen on. Default: 3000
--httpsProtocol -H To enable HTTPS, specify directory (relative to your cwd, typically your project dir) for both cert.pem and key.pem files
Expand Down
4 changes: 0 additions & 4 deletions src/config/commandOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ export default {
type: 'boolean',
usage: 'Enforce secure cookies',
},
hideStackTraces: {
type: 'boolean',
usage: 'Hide the stack trace on lambda failure. Default: false',
},
host: {
shortcut: 'o',
type: 'string',
Expand Down
1 change: 0 additions & 1 deletion src/config/defaultOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default {
dockerNetwork: null,
dockerReadOnly: true,
enforceSecureCookies: false,
hideStackTraces: false,
host: 'localhost',
httpPort: 3000,
httpsProtocol: null,
Expand Down
4 changes: 0 additions & 4 deletions src/events/http/HttpServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -601,10 +601,6 @@ export default class HttpServer {

log.error(errorMessage)

if (!this.#options.hideStackTraces) {
log.error(err.stack)
}

for (const [key, value] of entries(endpoint.responses)) {
if (
key !== 'default' &&
Expand Down

0 comments on commit 1820771

Please sign in to comment.