mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-14 15:24:52 +09:00
Fix WebConsoleFormat not using names
The logging format provides both the name and id of slaves and instances. Use the name when formatting for the web console just like the TerminalFormat does.
This commit is contained in:
1 parent
5e01f427af
commit
1ba091fd0e
1 file changed
+2
-4
@@ -59,12 +59,10 @@ class WebConsoleFormat {
|
||||
transform(info, options) {
|
||||
let src = " ";
|
||||
if (info.slave_id !== undefined) {
|
||||
let slaveName = info.slave_id;
|
||||
src += `s:${slaveName} - `;
|
||||
src += `s:${info.slave_name} - `;
|
||||
}
|
||||
if (info.instance_id !== undefined) {
|
||||
let instanceName = info.instance_id;
|
||||
src += `i:${instanceName}`;
|
||||
src += `i:${info.instance_name}`;
|
||||
}
|
||||
if (info.plugin) {
|
||||
src += `${info.plugin}: `;
|
||||
|
||||
Reference in new issue
Block a user