Clear loghandlers on init and supress output in tests

This commit is contained in:
Nick O'Leary
2015-02-04 21:29:11 +00:00
parent c8d2d690f0
commit 1712146836
2 changed files with 5 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ var EventEmitter = require("events").EventEmitter;
var levels = {
off: 0,
fatal: 10,
error: 20,
warn: 30,
@@ -72,6 +73,7 @@ var log = module.exports = {
METRIC: 99,
init: function(settings) {
logHandlers = [];
var consoleSettings = {};
if (settings.logging) {
consoleSettings = settings.logging.console || {};