Skip to content

Commit

Permalink
chore: deprecate config.log
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanfoster committed Mar 31, 2017
1 parent 0d9367f commit 6ac9761
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "index.js",
"scripts": {
"build": "babel src -d lib",
"build:watch": "chokidar 'src/**' 'test/**/*.js' -c 'npm run build' --initial",
"coverage": "NO_DEPRECATION=parch NODE_ENV=test istanbul cover ./node_modules/mocha/bin/_mocha -- --compilers js:babel-register --recursive --timeout 40000",
"changelog": "conventional-changelog -s -p angular -i CHANGELOG.md",
"docs": "yuidoc . -o docs",
Expand Down
3 changes: 3 additions & 0 deletions src/initializers/logger.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
"use strict";

import Bunyan from "bunyan";
import depd from "depd";

module.exports = {
initialize(application, registry) {
const Logger = registry.lookup("module:logger");
const config = registry.lookup("config:main");

depd("parch")("config#log is deprectated and will be removed in 2.0.0");

if (config.log && config.log instanceof Bunyan) {
registry.register("service:logger", config.log);
} else {
Expand Down

0 comments on commit 6ac9761

Please sign in to comment.