1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

recorrect debug logging level colour class names so sidebar is as-was.

in light of new logging levels
This commit is contained in:
dceejay 2015-02-14 12:14:06 +00:00
parent 5643c51507
commit 07641d57ab

View File

@ -196,6 +196,7 @@
'</span>'; '</span>';
// NOTE: relying on function error to have a "type" that all other msgs don't // NOTE: relying on function error to have a "type" that all other msgs don't
if (o.hasOwnProperty("type") && (o.type === "function")) { if (o.hasOwnProperty("type") && (o.type === "function")) {
msg.className = 'debug-message debug-message-level-20';
msg.innerHTML += '<span class="debug-message-topic">[function] : (error)</span>'; msg.innerHTML += '<span class="debug-message-topic">[function] : (error)</span>';
} else { } else {
msg.innerHTML += '<span class="debug-message-topic">'+(o.topic?topic+' : ':'')+ msg.innerHTML += '<span class="debug-message-topic">'+(o.topic?topic+' : ':'')+
@ -284,11 +285,11 @@
border-left-color: #eee; border-left-color: #eee;
border-right-color: #eee; border-right-color: #eee;
} }
.debug-message-level-warn { .debug-message-level-30 {
border-left-color: #ffdf9d; border-left-color: #ffdf9d;
border-right-color: #ffdf9d; border-right-color: #ffdf9d;
} }
.debug-message-level-error { .debug-message-level-20 {
border-left-color: #f99; border-left-color: #f99;
border-right-color: #f99; border-right-color: #f99;
} }