mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 22:09:57 +02:00
Fix of broken logger
This commit is contained in:
@@ -60,8 +60,8 @@ Logger = (function() {
|
||||
|
||||
Logger.prototype.write = function(options) {
|
||||
if(typeof console !== 'undefined'){
|
||||
if(typeof log.debug !== 'undefined'){
|
||||
return log.debug(this.build_message(options));
|
||||
if(typeof console.log !== 'undefined'){
|
||||
return console.log(this.build_message(options));
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -86,7 +86,7 @@ Logger.levels = {
|
||||
warn: 3,
|
||||
error: 4,
|
||||
fatal: 5,
|
||||
default:3
|
||||
default:2
|
||||
};
|
||||
|
||||
exports.create = function(type, options) {
|
||||
|
Reference in New Issue
Block a user