Skip to content

Commit

Permalink
Remove options param on _setupWinstonConsoleTransport
Browse files Browse the repository at this point in the history
Not needed
  • Loading branch information
rhyslbw committed Apr 27, 2016
1 parent 33c2635 commit 5ea3ec7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions source/server/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Space.Module.define('Space.logging.Winston', {

onInitialize() {
const log = this.injector.get('log');

const transports = lodash.get(this.configuration, 'log.winston.transports', [
this._setupWinstonConsoleTransport()
]);
Expand All @@ -16,12 +15,12 @@ Space.Module.define('Space.logging.Winston', {
log.addAdapter('winston', adapter);
},

_setupWinstonConsoleTransport(options) {
const mergedOptions = _.extend({}, {
_setupWinstonConsoleTransport() {
const options = {
colorize: true,
prettyPrint: true,
level: 'info'
}, options);
return Space.Logger.WinstonAdapter.console(mergedOptions);
};
return Space.Logger.WinstonAdapter.console(options);
}
});

0 comments on commit 5ea3ec7

Please sign in to comment.