From 1ba091fd0e8f2347e37781b7f8ae5b218ec9ebe3 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Wed, 15 Feb 2023 20:18:00 +0100 Subject: [PATCH] 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. --- packages/lib/logging.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/lib/logging.js b/packages/lib/logging.js index fe6c6300..97743f56 100644 --- a/packages/lib/logging.js +++ b/packages/lib/logging.js @@ -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}: `;