diff --git a/kong/runloop/plugin_servers/mp_rpc.lua b/kong/runloop/plugin_servers/mp_rpc.lua index a71e3b7b3ed2..35db3ca1581a 100644 --- a/kong/runloop/plugin_servers/mp_rpc.lua +++ b/kong/runloop/plugin_servers/mp_rpc.lua @@ -329,12 +329,12 @@ function Rpc:handle_event(plugin_name, conf, phase) local _, err = bridge_loop(self, instance_id, phase) if err then - kong.log.err(err) - if string.match(err:lower(), "no plugin instance") then + kong.log.warn(err) self.reset_instance(plugin_name, conf) return self:handle_event(plugin_name, conf, phase) end + kong.log.err(err) end end diff --git a/kong/runloop/plugin_servers/pb_rpc.lua b/kong/runloop/plugin_servers/pb_rpc.lua index b200a0274b96..1c7a0758c051 100644 --- a/kong/runloop/plugin_servers/pb_rpc.lua +++ b/kong/runloop/plugin_servers/pb_rpc.lua @@ -394,13 +394,13 @@ function Rpc:handle_event(plugin_name, conf, phase) event_name = phase, }, true) if not res or res == "" then - kong.log.err(err) - if string.match(err:lower(), "no plugin instance") - or string.match(err:lower(), "closed") then - + if string.match(err:lower(), "no plugin instance") + or string.match(err:lower(), "closed") then + kong.log.warn(err) self.reset_instance(plugin_name, conf) return self:handle_event(plugin_name, conf, phase) end + kong.log.err(err) end end