Skip to content

Commit

Permalink
fix(legacy): change to withLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
FGRibreau committed May 19, 2015
1 parent 72a4104 commit 2592751
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ t.strictEqual(config.amqp.login, 'plop'); // converted from env
Common-env 1.x.x-2.x.x was displaying logs, here is how to retrieve the same behaviour in 3.x.x.

```javascript
var config = require('common-env/legacy')().getOrElseAll({
var logger = console;
var config = require('common-env/withLogger')(logger).getOrElseAll({
amqp: {
login: {
$default: 'guest',
Expand Down
2 changes: 0 additions & 2 deletions legacy/index.js

This file was deleted.

2 changes: 2 additions & 0 deletions withLogger/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./withLog');
File renamed without changes.

0 comments on commit 2592751

Please sign in to comment.