Get log level correct

This commit is contained in:
Tyler Long 2018-03-06 18:56:37 +08:00
parent 1d7589abb9
commit 388ec2cd97
3 changed files with 3 additions and 3 deletions

2
dist/index.html vendored
View File

@ -101,7 +101,7 @@ Class08 <--> C2: Cool label
</div>
<script src="./mermaid.js"></script>
<script>
mermaid.initialize({ theme: 'forest' });
mermaid.initialize({ theme: 'forest', logLevel: 3 });
</script>
<script>
function testClick(nodeId) {

View File

@ -38,7 +38,7 @@ export const getRelations = function () {
}
export const addRelation = function (relation) {
logger.warn('Adding relation: ' + JSON.stringify(relation))
logger.debug('Adding relation: ' + JSON.stringify(relation))
addClass(relation.id1)
addClass(relation.id2)
relations.push(relation)

View File

@ -489,7 +489,7 @@ function render2 (id, text, cb, containerElement) {
return render(id, text, cb, containerElement)
}
} catch (e) {
logger.warn(e)
logger.error(e)
}
}