Skip to content
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.

Commit

Permalink
[fix] global leaking cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
dscape committed May 23, 2012
1 parent d16bb87 commit 3386556
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion logger/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ var verbose = (process.env.NANO_ENV==='testing')

module.exports = function logging(cfg) {
var logStrategy = cfg ? cfg.log : undefined;
this.cfg = cfg;
if (typeof logStrategy !== 'function') {
if(verbose) {
logStrategy = function consoleLog(eventId, args) {
Expand Down

0 comments on commit 3386556

Please sign in to comment.