Slack messaging #169

Merged
bones7242 merged 11 commits from slack-messaging into master 2017-09-21 21:11:32 +02:00
3 changed files with 4 additions and 4 deletions
Showing only changes of commit cfe608c9ce - Show all commits

View file

@ -10,7 +10,7 @@
}, },
"Logging": { "Logging": {
"LogLevel": "silly", "LogLevel": "silly",
"SlackErrorChannel": "staging_speech-errors", "SlackErrorChannel": "#staging_speech-errors",
"SlackInfoChannel": "none" "SlackInfoChannel": "none"
} }
} }

View file

@ -10,7 +10,7 @@
}, },
"Logging": { "Logging": {
"LogLevel": "verbose", "LogLevel": "verbose",
"SlackErrorChannel": "speech-errors", "SlackErrorChannel": "#speech-errors",
"SlackInfoChannel": "speech-logs" "SlackInfoChannel": "#speech-logs"
} }
} }

View file

@ -1,7 +1,7 @@
const config = require('config'); const config = require('config');
const SLACK_WEB_HOOK = config.get('Logging.SlackWebHook'); const SLACK_WEB_HOOK = config.get('Logging.SlackWebHook');
const SLACK_ERROR_CHANNEL = config.get('Logging.SlackErrorChannel'); const SLACK_ERROR_CHANNEL = config.get('Logging.SlackErrorChannel');
const SLACK_INFO_CHANNEL = config.get('Logging.SlackLogsChannel'); const SLACK_INFO_CHANNEL = config.get('Logging.SlackInfoChannel');
const winstonSlackWebHook = require('winston-slack-webhook').SlackWebHook; const winstonSlackWebHook = require('winston-slack-webhook').SlackWebHook;
module.exports = (winston) => { module.exports = (winston) => {