Skip to content

Conversation

@dalebremner
Copy link
Contributor

@RackHD/corecommitters @keedya @BillyAbildgaard @srinia6

@heckj
Copy link
Member

heckj commented Aug 9, 2016

nice add @dalebremner, I like the pattern.

Might be worth a mention explicitly in the docs as well - maybe a little tweak/additional letting folks know about this upcoming side effect at https://github.com/RackHD/docs/blame/master/docs/rackhd/configuration.rst#L167

@heckj
Copy link
Member

heckj commented Aug 9, 2016

👍

@dalebremner
Copy link
Contributor Author

will do @heckj

module.exports = function create() {
var injector = require('../../index.js').injector;
var swaggerService = injector.get('Http.Services.Swagger');
var nconf = injector.get('nconf');
Copy link
Contributor

@benbp benbp Aug 9, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use the Services.Configuration dependency here instead of nconf directly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @benbp ! all set...

@keedya
Copy link

keedya commented Aug 10, 2016

👍

@brianparry
Copy link
Contributor

👍

@benbp
Copy link
Contributor

benbp commented Aug 10, 2016

👍 though I agree with @anhou and @yyscamper that we probably don't need/want to return stack traces through the API at all, but rather if debugging you can look them up in logs instead.

That said, on a separate note, maybe it would be a good idea for us to start keeping track of unique request IDs and returning those, so if someone gets a 500 error, we have a unique ID to search the logs with to find the exact message that corresponds to the problematic request? @RackHD/corecommitters @heckj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants