diff options
| author | Alireza Ahmadi <alireza7@gmail.com> | 2023-12-10 17:06:42 +0300 |
|---|---|---|
| committer | Alireza Ahmadi <alireza7@gmail.com> | 2023-12-10 17:17:10 +0300 |
| commit | e1da2a2eedd0436296fba7e5a214ed9a347a1ef3 (patch) | |
| tree | dace9ffcd6c046df112722aa4d1e493e70ee42f6 /web/html/xui/index.html | |
| parent | 848e549c0cdff9b21991e9bd2f6534f59b7a6b5b (diff) | |
small fixes #1300
Diffstat (limited to 'web/html/xui/index.html')
| -rw-r--r-- | web/html/xui/index.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/html/xui/index.html b/web/html/xui/index.html index d9106a51..675b267d 100644 --- a/web/html/xui/index.html +++ b/web/html/xui/index.html @@ -437,8 +437,8 @@ }, formatLogs(logs) { let formattedLogs = ''; - const levels = ["DEBUG","INFO","WARNING","ERROR"]; - const levelColors = ["#7a316f","#008771","#f37b24","#cf3c3c","#bcbcbc"]; + const levels = ["DEBUG","INFO","NOTICE","WARNING","ERROR"]; + const levelColors = ["#3c89e8","#008771","#008771","#f37b24","#e04141","#bcbcbc"]; logs.forEach((log, index) => { let [data, message] = log.split(" - ",2); @@ -449,13 +449,13 @@ const d = parts[0]; const t = parts[1]; const level = parts[2]; - const levelIndex = levels.indexOf(level,levels) || 4; + const levelIndex = levels.indexOf(level,levels) || 5; //formattedLogs += `<span style="color: gray;">${index + 1}.</span>`; formattedLogs += `<span style="color: ${levelColors[0]};">${d} ${t}</span> `; formattedLogs += `<span style="color: ${levelColors[levelIndex]}">${level}</span>`; } else { - const levelIndex = levels.indexOf(data,levels) || 4; + const levelIndex = levels.indexOf(data,levels) || 5; formattedLogs += `<span style="color: ${levelColors[levelIndex]}">${data}</span>`; } |
