mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-05-03 13:48:49 +00:00
feature / 10
10 / fix
This commit is contained in:
parent
f3b7e3cc6d
commit
8aabe1b049
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue