updated configs to not use logger client side

This commit is contained in:
bill bittner 2018-03-12 19:33:09 -07:00
parent ac0c28b8f9
commit 76c0fc9326
7 changed files with 7 additions and 13 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;

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