Skip to content

disable all error #124

@ikeas68

Description

@ikeas68

hello
i have many time this error (in using modbus)
Exception happened during processing of request from ('10.7.25.7', 52879) Traceback (most recent call last): File "/usr/lib/python3.8/socketserver.py", line 683, in process_request_thread self.finish_request(request, client_address) File "/usr/lib/python3.8/socketserver.py", line 360, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.8/socketserver.py", line 747, in __init__ self.handle() File "/usr/local/lib/python3.8/dist-packages/umodbus/server/__init__.py", line 42, in handle mbap_header = recv_exactly(self.request.recv, 7) File "/usr/local/lib/python3.8/dist-packages/umodbus/utils.py", line 132, in recv_exactly chunk = recv_fn(size - recv_bytes) ConnectionResetError: [Errno 104] Connection reset by peer

i try to use
log_to_stream(level = logging.CRITICAL)
but i have allways this message
how i can't suppress it ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions