Skip to content

Commit 67e3fc5

Browse files
committed
Don't log error when missing slave ignored
1 parent 5094c9e commit 67e3fc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pymodbus/server/async_io.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,10 @@ async def server_async_execute(self, request, *addr):
166166
response = await request.update_datastore(context)
167167

168168
except NoSuchSlaveException:
169-
Log.error("requested slave does not exist: {}", request.slave_id)
170169
if self.server.ignore_missing_slaves:
170+
Log.debug("ignored slave that does not exist: {}", request.slave_id)
171171
return # the client will simply timeout waiting for a response
172+
Log.error("requested slave does not exist: {}", request.slave_id)
172173
response = ExceptionResponse(0x00, ExceptionResponse.GATEWAY_NO_RESPONSE)
173174
except Exception as exc: # pylint: disable=broad-except
174175
Log.error(

0 commit comments

Comments
 (0)