Skip to content

Commit

Permalink
fixed loggly in production
Browse files Browse the repository at this point in the history
  • Loading branch information
noahsw committed Aug 7, 2016
1 parent 2a4caac commit 02b69f0
Show file tree
Hide file tree
Showing 46 changed files with 462 additions and 608 deletions.
21 changes: 10 additions & 11 deletions app/imports/startup/server/loggly.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
import { Meteor } from 'meteor/meteor';
import log from '../../utils/log';

import WinstonLoggly from 'winston-loggly';
import 'winston-loggly-bulk';

Meteor.startup(() => {
if (Meteor.isProduction) init();
});

function token() {
// mup.json sets this
const token = () => {
// mup.js sets this
return process.env.LOGGLY_TOKEN;
}
};

function init() {
const init = () => {
if (! token()) {
log.warn('LOGGLY_TOKEN not found!');
return;
Expand All @@ -27,7 +23,10 @@ function init() {
'handleExceptions': true,
};

log.add(WinstonLoggly, options);
log.add(log.transports.Loggly, options);
log.info('Loggly setup complete');
}
};

Meteor.startup(() => {
if (Meteor.isProduction) init();
});
Binary file removed app/node_shrinkwrap/babel-core-6.11.4.tgz
Binary file not shown.
Binary file added app/node_shrinkwrap/babel-core-6.13.2.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/babel-traverse-6.12.0.tgz
Binary file not shown.
Binary file added app/node_shrinkwrap/babel-traverse-6.13.0.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/babel-types-6.11.1.tgz
Binary file not shown.
Binary file added app/node_shrinkwrap/babel-types-6.13.0.tgz
Binary file not shown.
Binary file added app/node_shrinkwrap/circular-json-0.3.1.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/dashdash-1.13.1.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/ecc-jsbn-0.0.1.tgz
Binary file not shown.
Binary file not shown.
Binary file removed app/node_shrinkwrap/eslint-plugin-import-1.12.0.tgz
Binary file not shown.
Binary file not shown.
Binary file removed app/node_shrinkwrap/eslint-plugin-jsx-a11y-1.5.5.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/espree-3.1.6.tgz
Binary file not shown.
Binary file added app/node_shrinkwrap/espree-3.1.7.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/file-entry-cache-1.2.4.tgz
Binary file not shown.
Binary file added app/node_shrinkwrap/file-entry-cache-1.3.1.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/flat-cache-1.0.10.tgz
Binary file not shown.
Binary file added app/node_shrinkwrap/flat-cache-1.2.1.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/getpass-0.1.5.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/jsbn-0.0.0.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/jsprim-1.2.2.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/lodash.cond-4.5.0.tgz
Binary file not shown.
Binary file added app/node_shrinkwrap/lodash.cond-4.5.1.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/lodash.find-4.5.0.tgz
Binary file not shown.
Binary file added app/node_shrinkwrap/lodash.find-4.5.1.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/lodash.findindex-4.5.0.tgz
Binary file not shown.
Binary file added app/node_shrinkwrap/lodash.findindex-4.5.1.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/mime-db-1.22.0.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/mime-types-2.1.10.tgz
Binary file not shown.
Binary file added app/node_shrinkwrap/node-loggly-bulk-1.1.1.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/oauth-sign-0.8.1.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/qs-5.2.0.tgz
Binary file not shown.
Binary file added app/node_shrinkwrap/qs-5.2.1.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/read-json-sync-1.1.1.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/shelljs-0.6.0.tgz
Binary file not shown.
Binary file added app/node_shrinkwrap/shelljs-0.6.1.tgz
Binary file not shown.
Binary file modified app/node_shrinkwrap/spacejam-1.6.2-rc.4.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/sshpk-1.8.1.tgz
Binary file not shown.
Binary file added app/node_shrinkwrap/sshpk-1.9.2.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/tunnel-agent-0.4.2.tgz
Binary file not shown.
Binary file removed app/node_shrinkwrap/winston-loggly-1.3.1.tgz
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 02b69f0

Please sign in to comment.