From c62ac33a5e86844179fbb13865eabc6bd5005cee Mon Sep 17 00:00:00 2001 From: Unitech Date: Fri, 6 Oct 2023 07:39:50 +0200 Subject: [PATCH] fix #5660 - loose checking --- lib/API/Log.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/API/Log.js b/lib/API/Log.js index 35aae46c5..ba72fe7c5 100644 --- a/lib/API/Log.js +++ b/lib/API/Log.js @@ -98,10 +98,11 @@ Log.stream = function(Client, id, raw, timestamp, exclusive, highlight) { var min_padding = 3 bus.on('log:*', function(type, packet) { - var isMatchingProcess = id === 'all' - || packet.process.name === id - || packet.process.pm_id === id - || packet.process.namespace === id; + var isMatchingProcess = id === 'all' + || packet.process.name == id + || packet.process.pm_id == id + || packet.process.namespace == id; + if (!isMatchingProcess) return;