Adjust some log levels

This commit is contained in:
rejas 2020-06-20 12:07:04 +02:00
parent 3fcbf15915
commit 7a4eddc592
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ function checkConfigFile() {
try {
fs.accessSync(configFileName, fs.F_OK);
} catch (e) {
Log.log(Utils.colors.error(e));
Log.error(Utils.colors.error(e));
throw new Error("No permission to access config file!");
}

View File

@ -37,7 +37,7 @@ var Server = function (config, callback) {
server.listen(port, config.address ? config.address : "localhost");
if (config.ipWhitelist instanceof Array && config.ipWhitelist.length === 0) {
Log.info(Utils.colors.warn("You're using a full whitelist configuration to allow for all IPs"));
Log.warn(Utils.colors.warn("You're using a full whitelist configuration to allow for all IPs"));
}
app.use(function (req, res, next) {