Skip to content
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

APM-12041 remove configuration download and cleanup logging #6

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ if (config.volume && config.volume.length) {
if (!fs.existsSync(config.volume)) {
fs.mkdirSync(config.volume);
}
}
} else {
console.log("Impossible to load config.yml");
throw new Error("Impossible to load config.yml");

if (!config.configVersion || config.configVersion < Config.configVersion) {
console.log("Your config.yml file is old. It works, but it may not support all the new features. Update your config file or generate a new one (e.g., rename the file into config.yml.bak, run BGPalerter and proceed with the auto configuration, apply to the new config.yml the personalizations you did in config.yml.bak.");
}

const errorTransport = new FileLogger({
Expand Down
2 changes: 1 addition & 1 deletion src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default class Worker {
if (this.config.uptimeMonitor) {
this.logger.log({
level: 'error',
message: "The uptime monitor configuration changed. Please see the documentation https://github.com/nttgin/BGPalerter/blob/main/docs/process-monitors.md"
message: "The uptime monitor configuration changed."
});
}

Expand Down