updated configs to not use logger client side
This commit is contained in:
parent
ac0c28b8f9
commit
76c0fc9326
7 changed files with 7 additions and 13 deletions
|
@ -1,12 +1,10 @@
|
|||
const logger = require('winston');
|
||||
|
||||
function MysqlConfig () {
|
||||
this.database = 'default';
|
||||
this.username = 'default';
|
||||
this.password = 'default';
|
||||
this.configure = (config) => {
|
||||
if (!config) {
|
||||
return logger.warn('No MySQL config received.');
|
||||
return console.log('No MySQL config received.');
|
||||
}
|
||||
const {database, username, password} = config;
|
||||
this.database = database;
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
const logger = require('winston');
|
||||
|
||||
function SiteConfig () {
|
||||
this.analytics = {
|
||||
googleId: 'default',
|
||||
|
@ -27,7 +25,7 @@ function SiteConfig () {
|
|||
};
|
||||
this.configure = (config) => {
|
||||
if (!config) {
|
||||
return logger.warn('No site config received.');
|
||||
return console.log('No site config received.');
|
||||
}
|
||||
const {analytics, publishing, details, assetDefaults, auth} = config;
|
||||
this.analytics = analytics;
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
const logger = require('winston');
|
||||
|
||||
function SlackConfig () {
|
||||
this.slackWebHook = 'default';
|
||||
this.slackErrorChannel = 'default';
|
||||
this.slackInfoChannel = 'default';
|
||||
this.configure = (config) => {
|
||||
if (!config) {
|
||||
return logger.warn('No slack config received.');
|
||||
return console.log('No slack config received.');
|
||||
}
|
||||
const {slackWebHook, slackErrorChannel, slackInfoChannel} = config;
|
||||
this.slackWebHook = slackWebHook;
|
||||
|
|
2
index.js
2
index.js
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue