mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-05-02 21:28: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 += ' - ';
|
||||
|
||||
if (id.substr(0, 1) === '[') {
|
||||
let idColor = idColors[idColorIndex];
|
||||
if (lastLogId !== '' && lastLogId !== id) {
|
||||
idColorIndex++;
|
||||
}
|
||||
if (idColorIndex >= idColors.length) {
|
||||
idColorIndex = 0;
|
||||
}
|
||||
let idColor = idColors[idColorIndex];
|
||||
lastLogId = id;
|
||||
formattedLogs += `<span style="color: ${idColor};">${id}</span> <span style="color: ${levelColors[5]};">${message}</span>`;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue