add finisheding msg
This commit is contained in:
parent
d15f1613f0
commit
4b7b43c036
@ -1,6 +1,7 @@
|
|||||||
import Influx from "./influx/influx";
|
import Influx from "./influx/influx";
|
||||||
import ServerManager from "./server/serverManager";
|
import ServerManager from "./server/serverManager";
|
||||||
import WebsiteManager from "./website/websiteManager";
|
import WebsiteManager from "./website/websiteManager";
|
||||||
|
import {logger} from "./utils/logger";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The influx database instance.
|
* The influx database instance.
|
||||||
@ -9,3 +10,5 @@ export const influx = new Influx();
|
|||||||
|
|
||||||
new ServerManager();
|
new ServerManager();
|
||||||
new WebsiteManager();
|
new WebsiteManager();
|
||||||
|
|
||||||
|
logger.info("Done loading!");
|
@ -20,8 +20,8 @@ export default class ServerManager {
|
|||||||
}
|
}
|
||||||
logger.info(`Loaded ${this.servers.length} servers!`);
|
logger.info(`Loaded ${this.servers.length} servers!`);
|
||||||
|
|
||||||
cron.schedule(Config.pinger.pingCron, () => {
|
cron.schedule(Config.pinger.pingCron, async () => {
|
||||||
this.pingServers();
|
await this.pingServers();
|
||||||
});
|
});
|
||||||
|
|
||||||
cron.schedule(Config.pinger.dnsInvalidationCron, () => {
|
cron.schedule(Config.pinger.dnsInvalidationCron, () => {
|
||||||
|
@ -19,8 +19,8 @@ export default class WebsiteManager {
|
|||||||
}
|
}
|
||||||
logger.info(`Loaded ${this.websites.length} websites!`);
|
logger.info(`Loaded ${this.websites.length} websites!`);
|
||||||
|
|
||||||
cron.schedule(Config.pinger.pingCron, () => {
|
cron.schedule(Config.pinger.pingCron, async () => {
|
||||||
this.pingWebsites();
|
await this.pingWebsites();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user