Slack messaging #169
3 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@
|
||||||
},
|
},
|
||||||
"Logging": {
|
"Logging": {
|
||||||
"LogLevel": "silly",
|
"LogLevel": "silly",
|
||||||
"SlackErrorChannel": "staging_speech-errors",
|
"SlackErrorChannel": "#staging_speech-errors",
|
||||||
"SlackInfoChannel": "none"
|
"SlackInfoChannel": "none"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,7 +10,7 @@
|
||||||
},
|
},
|
||||||
"Logging": {
|
"Logging": {
|
||||||
"LogLevel": "verbose",
|
"LogLevel": "verbose",
|
||||||
"SlackErrorChannel": "speech-errors",
|
"SlackErrorChannel": "#speech-errors",
|
||||||
"SlackInfoChannel": "speech-logs"
|
"SlackInfoChannel": "#speech-logs"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in a new issue