-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[strong-error-handler] Documentation impact #21
Comments
@loay Please confirm that this is added in Also confirm that I should note in config.json / remoting properties that disabling stack traces with
is only recommended with pre-2.31.0 versions. |
@crandmck it is recommended for all 2.x versions. Now I see that release notes don't include instructions for upgrading from 2.x to 3.x, we need to fix that (I guess either me or @loay). |
in Migrating to 3.0 note, it is stated that one shall set in config.json
and in middleware.json
but i can't find any impact of the latest on the overall app behavior. Removing the config lines in middleware.json does work the exact same way. I'm confused about the requirement to have this config in middleware.json. Could someone from the lb team clarify this? also if i programmatically specify the config.json file to use, using NODE_ENV var, i seem to have a conflict when using the config file name |
Ah, that part is not correct. We should disable the built-in error handler completely, as can be seen in the template used for new projects (source):
LoopBack uses |
hey @bajtos
does not disable logs and does not enable detailed debug info over rest as for setting NODE_ENV=development : ok, makes sense. but it's not sufficiently clear in the doc i guess |
Well, I am afraid I have run out of obvious advices I can give. Could you please create a small app reproducing the issue (see http://loopback.io/doc/en/contrib/Reporting-issues.html#bug-report) and open a new issue in https://github.com/strongloop/loopback/issues? |
@ebarault I see. Can you advise us how to make this fact more clear? Or perhaps even better, send a pull request with the proposed changes to https://github.com/strongloop/loopback.io? |
--> 😜 about doc : ok, will do |
@bajtos :
am i right to think that this statement should apply application wide? at the moment with latest loopback v3, the file datasources.json seems mandatory, even if my app has a datasources.development.json file and is run with no NODE_ENV set or NODE_ENV set to developement
see this very basic sandbox if you will : https://github.com/ebarault/loopback-sandbox/tree/testing/strong-error-handler-config update: if a datasources.json file containing just |
Yes,
IIRC, the code merging |
To be more precise, this applies to all things loaded via |
thanks for digging into it @bajtos. Clarifications are much appreciated.
this is not the case: if i have just |
@ebarault You are right, the behaviour was changed in July 2015 by strongloop/loopback-boot#143. I was not invited to review that patch, which explains why I was not aware of this change. |
Is there anything further we need to add/change in the docs? Or can we close this issue? |
I think this is ok to be closed. @ebarault if you think our documentation still needs changes, then please open a new issue. |
Added https://docs.strongloop.com/display/APIC/Using+strong-error-handler that incorporates the README content.
From @loay:
From @bajtos:
I think there should be a brief description of why someone should use this module.
See the information in strongloop/loopback#1650
It would be great to copy useful bits from that issue into the official LoopBack docs, possibly to strong-error-handler's README too.
The text was updated successfully, but these errors were encountered: