Skip to content
Myr

Add settings to debug output

Before adoption: this commit came in with the history the project adopted, so no landing records it.

closes #2675

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 9302acc · Browse files · 2 files+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:lib/application.js+2 added-3 removed
352 unmodified lines
353 // app.get(setting)354 return this.settings[setting];355 }356357 debug('set "%s" to %o', setting, val);358359 // set value360 this.settings[setting] = val;361362 // trigger matched settings363 switch (setting) {364 case 'etag':363 debug('compile etag %s', val);365 this.set('etag fn', compileETag(val));366 break;367 case 'query parser':367 debug('compile query parser %s', val);368 this.set('query parser fn', compileQueryParser(val));369 break;370 case 'trust proxy':371 debug('compile trust proxy %s', val);371 this.set('trust proxy fn', compileTrust(val));372373 // trust proxy inherit back-compat374 Object.defineProperty(this.settings, trustProxyDefaultSymbol, {
269 unmodified lines
modified:History.md+1 added
1unreleased2==========34 * Add settings to debug output5 * Fix `res.format` error when only `default` provided6 * Fix issue where `next('route')` in `app.param` would incorrectly skip values7 * Fix hiding platform issues with `decodeURIComponent`8 - Only `URIError`s are a 400
2956 unmodified lines