mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-17 06:20:07 +02:00
Fix of broken logger
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user