mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-03 11:36:08 +08:00
[cloud] fix(*): remove all traces of loggly
This commit is contained in:
parent
0aa11cf9d2
commit
1ec3c2e162
1 changed files with 1 additions and 13 deletions
|
@ -1,14 +1,7 @@
|
|||
const os = require('os');
|
||||
const createCWStream = require('bunyan-cloudwatch')
|
||||
const PrettyStream = require('bunyan-prettystream')
|
||||
const Bunyan2Loggly = require('bunyan-loggly')
|
||||
|
||||
const {LOGGLY_TOKEN} = process.env
|
||||
const logglyConfig = (name, env) => ({
|
||||
token: LOGGLY_TOKEN,
|
||||
subdomain: 'nylas',
|
||||
tags: [`${name}-${env}`],
|
||||
})
|
||||
const cloudwatchConfig = (name, env) => ({
|
||||
logGroupName: `k2-${env}`,
|
||||
logStreamName: `${name}-${env}-${os.hostname()}`,
|
||||
|
@ -30,7 +23,7 @@ const getLogStreams = (name, env) => {
|
|||
lessThan: 'error',
|
||||
});
|
||||
const prettyStdErr = new PrettyStream({
|
||||
mode: 'pm2'
|
||||
mode: 'pm2',
|
||||
});
|
||||
prettyStdOut.pipe(process.stdout);
|
||||
prettyStdErr.pipe(process.stderr);
|
||||
|
@ -52,11 +45,6 @@ const getLogStreams = (name, env) => {
|
|||
default: {
|
||||
return [
|
||||
stdoutStream,
|
||||
{
|
||||
type: 'raw',
|
||||
reemitErrorEvents: true,
|
||||
stream: new Bunyan2Loggly(logglyConfig(name, env)),
|
||||
},
|
||||
{
|
||||
type: 'raw',
|
||||
reemitErrorEvents: true,
|
||||
|
|
Loading…
Reference in a new issue