Fix of broken logger

This commit is contained in:
knsv 2015-07-04 09:30:26 +02:00
parent 145983fc5d
commit ab1dd1e549
1 changed files with 3 additions and 3 deletions

View File

@ -60,8 +60,8 @@ Logger = (function() {
Logger.prototype.write = function(options) { Logger.prototype.write = function(options) {
if(typeof console !== 'undefined'){ if(typeof console !== 'undefined'){
if(typeof log.debug !== 'undefined'){ if(typeof console.log !== 'undefined'){
return log.debug(this.build_message(options)); return console.log(this.build_message(options));
} }
} }
}; };
@ -86,7 +86,7 @@ Logger.levels = {
warn: 3, warn: 3,
error: 4, error: 4,
fatal: 5, fatal: 5,
default:3 default:2
}; };
exports.create = function(type, options) { exports.create = function(type, options) {