-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Task] Safe Mode - filesystem based config file improvements #30
Comments
Ok, so the way I'm thinking of doing this is
For arguments such as So it turns out https://github.com/node-config/node-config/wiki/Using-Config-Utilities#diffdeepobject1-object2-depth can be used. The documentation says that it works best if we clone the default first, apply the config over it and then make the diff. |
Do we need to show the config at start? if the bot crashes at startup the config will get printed anyways. So why don't we just leave it to be printed on exit? Well, part of the problem is when should we setup the exit hook? |
|
Main story: #1
Description
Some support requests are a result of misconfiguration in the config file. When we get these requests, it's sometimes completely unclear where the config file is being loaded from (due to the behavior of the
config
npm package (the-draupnir-project/Draupnir#218).Acceptance Criteria
When draupnir starts, any non-default configuration values are pretty printed to the log (with secrets redacted).* This was too noisy, so instead we will print them only on
exit
.--draupnir-config
, then a warning is shown that their method of providing the config is deprecated.--mjolnir-config
.Stretch
Issues
--draupnir-config
incorrectly warns that he config can't be found because of theConfig
package behaviour Draupnir#480--draupnir-config
argument, because the legacy modes of starting Draupnir without config are fragile. Draupnir#218PRs
The text was updated successfully, but these errors were encountered: