require('./env');

module.exports = function(config) {
  config = Object.assign({}, config, {
    BUGS_TOKEN: process.env.BUGSNAG_TOKEN,
    LOGS_TOKEN: process.env.LOGENTRIES_TOKEN
  });

  require('./bugsnag')(config.BUGS_TOKEN);
  require('./winston')(config.LOGS_TOKEN);
};

require('./env');

module.exports = function(config) {
  config = Object.assign({
    BUGS_TOKEN: process.env.BUGSNAG_TOKEN,
    LOGS_TOKEN: process.env.LOGENTRIES_TOKEN
  }, config);

  require('./bugsnag')(config.BUGS_TOKEN);
  require('./winston')(config.LOGS_TOKEN);
};

Fix priority order in default config usage (env is not priority)
Fix priority order in default config usage (env is not priority)
