feature / 10

10 / fix
This commit is contained in:
serogaq 2024-12-12 00:29:21 +03:00
parent f3b7e3cc6d
commit 8aabe1b049
No known key found for this signature in database
GPG key ID: 6657A27160536D7E

View file

@ -654,13 +654,13 @@
formattedLogs += ' - '; formattedLogs += ' - ';
if (id.substr(0, 1) === '[') { if (id.substr(0, 1) === '[') {
let idColor = idColors[idColorIndex];
if (lastLogId !== '' && lastLogId !== id) { if (lastLogId !== '' && lastLogId !== id) {
idColorIndex++; idColorIndex++;
} }
if (idColorIndex >= idColors.length) { if (idColorIndex >= idColors.length) {
idColorIndex = 0; idColorIndex = 0;
} }
let idColor = idColors[idColorIndex];
lastLogId = id; lastLogId = id;
formattedLogs += `<span style="color: ${idColor};">${id}</span> <span style="color: ${levelColors[5]};">${message}</span>`; formattedLogs += `<span style="color: ${idColor};">${id}</span> <span style="color: ${levelColors[5]};">${message}</span>`;
} else { } else {