Create new instances of the null logger to remove potential side effects

This commit is contained in:
James Sumners 2019-08-24 21:04:23 -04:00
parent e9e8033fda
commit 2e2a0783bf
No known key found for this signature in database
GPG Key ID: DD9AAE30F864776B
6 changed files with 6 additions and 9 deletions

View File

@ -1,8 +1,6 @@
// Copyright 2012 Mark Cavage, Inc. All rights reserved. // Copyright 2012 Mark Cavage, Inc. All rights reserved.
var assert = require('assert'); var logger = Object.create(require('abstract-logging'));
var logger = require('abstract-logging');
var Client = require('./client'); var Client = require('./client');

View File

@ -1,6 +1,6 @@
// Copyright 2011 Mark Cavage, Inc. All rights reserved. // Copyright 2011 Mark Cavage, Inc. All rights reserved.
var logger = require('abstract-logging'); var logger = Object.create(require('abstract-logging'));
var client = require('./client'); var client = require('./client');
var Attribute = require('./attribute'); var Attribute = require('./attribute');
@ -8,7 +8,6 @@ var Change = require('./change');
var Protocol = require('./protocol'); var Protocol = require('./protocol');
var Server = require('./server'); var Server = require('./server');
var assert = require('assert');
var controls = require('./controls'); var controls = require('./controls');
var persistentSearch = require('./persistent_search'); var persistentSearch = require('./persistent_search');
var dn = require('./dn'); var dn = require('./dn');

View File

@ -1,6 +1,6 @@
// Copyright 2011 Mark Cavage, Inc. All rights reserved. // Copyright 2011 Mark Cavage, Inc. All rights reserved.
var logger = require('abstract-logging'); var logger = Object.create(require('abstract-logging'));
var test = require('tape').test; var test = require('tape').test;
var uuid = require('node-uuid'); var uuid = require('node-uuid');

View File

@ -2,7 +2,7 @@
var asn1 = require('asn1'); var asn1 = require('asn1');
var logger = require('abstract-logging'); var logger = Object.create(require('abstract-logging'));
var test = require('tape').test; var test = require('tape').test;

View File

@ -1,7 +1,7 @@
// Copyright 2014 Joyent, Inc. All rights reserved. // Copyright 2014 Joyent, Inc. All rights reserved.
var test = require('tape').test; var test = require('tape').test;
var logger = require('abstract-logging'); var logger = Object.create(require('abstract-logging'));
///--- Globals ///--- Globals

View File

@ -1,6 +1,6 @@
// Copyright 2011 Mark Cavage, Inc. All rights reserved. // Copyright 2011 Mark Cavage, Inc. All rights reserved.
var logger = require('abstract-logging'); var logger = Object.create(require('abstract-logging'));
var test = require('tape').test; var test = require('tape').test;
var uuid = require('node-uuid'); var uuid = require('node-uuid');