-
Notifications
You must be signed in to change notification settings - Fork 14
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
Filesystem config improvements #604
Conversation
Now let's try unknown configuration values.
Now we just need to make this scrap available in commands.
to reduce noise.
So it turns out that mps4bot-sdk is using a different instance of the bot-sdk module than Draupnir, i think. Since we used to tell MPS's logger to use the bot-sdk's `LogService`, but the `setLogger` that was used was obviously inconsistent with Draupnir's. Obviously the bot-sdk should be a peer dependency in the bot-sdk to prevent this happening in future.
function logNonDefaultConfiguration(config: IConfig): void { | ||
log.info( | ||
"non-default configuration properties:", | ||
JSON.stringify(getNonDefaultConfigProperties(config), null, 2) | ||
); | ||
} | ||
|
||
function logConfigMeta(config: IConfig): void { | ||
log.info("Configuration meta:", JSON.stringify(config.configMeta, null, 2)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Meow when is this shown?
Regular exit via Systemd shutting the bot down or only times when the bot shuts down unexpectedly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't intercept either SIGINT or SIGTERM cos that sounded kinda sketchy. It's only when draupnir crashes does the stuff get logged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This behavior of only showing on crash makes sense to me.
Part of: the-draupnir-project/planning#30
Startup:
Crash: