Skip to content

Commit

Permalink
Merge pull request #506 from senecajs/legacy
Browse files Browse the repository at this point in the history
Removed legacy options
  • Loading branch information
mcdonnelldean committed Aug 23, 2016
2 parents 926802c + 7f08e98 commit 33c52cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"patrun": "0.5.0",
"rolling-stats": "0.1.1",
"semver": "5.3.0",
"seneca-legacy-logger": "0.1.0",
"seneca-transport": "2.0.0",
"use-plugin": "0.3.1"
},
Expand Down
10 changes: 1 addition & 9 deletions seneca.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,6 @@ var internals = {

// backwards compatibility settings
legacy: {
// use old error codes, until version 3.x
error_codes: true,

// use old logging, until version 3.x
logging: true
}
}
}
Expand Down Expand Up @@ -1690,14 +1685,11 @@ function make_seneca (initial_options) {
}

function load_logger (instance, log_plugin) {
log_plugin = log_plugin ||
require(so.legacy.logging ? 'seneca-legacy-logger' : './lib/logging')
log_plugin = log_plugin || require('./lib/logging')

// TODO: check for preload
return log_plugin.preload.call(instance).extend.logger
}


function action_queue_clear () {
root.emit('ready')

Expand Down

0 comments on commit 33c52cb

Please sign in to comment.