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:
parent
5643c51507
commit
07641d57ab
@ -194,8 +194,9 @@
|
|||||||
msg.innerHTML = '<span class="debug-message-date">'+
|
msg.innerHTML = '<span class="debug-message-date">'+
|
||||||
getTimestamp()+'</span><span class="debug-message-name">['+name+']'+
|
getTimestamp()+'</span><span class="debug-message-name">['+name+']'+
|
||||||
'</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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user