mirror of
https://github.com/pawelmalak/flame.git
synced 2026-02-28 09:23:12 +08:00
Imporved logger
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
const { Op } = require('sequelize');
|
||||
const Config = require('../models/Config');
|
||||
const { config } = require('./initialConfig.json');
|
||||
const Logger = require('./Logger');
|
||||
const logger = new Logger();
|
||||
|
||||
const initConfig = async () => {
|
||||
// Get config values
|
||||
@@ -26,7 +28,7 @@ const initConfig = async () => {
|
||||
}
|
||||
})
|
||||
|
||||
console.log('Initial config created');
|
||||
logger.log('Initial config created');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user