I’m implementing a protocol which may be instantiated with different timeouts, so I use TimeoutMixin. The idea can be represented with this dummy class: my_protocol.py To test it with the Twisted Trial a made this unittest roughly following the official tutorial: test_my_protocol.py I get the following error when running the test: This is what official docs says on the topic:
Tag: twisted
How to set logging level in twisted?
I am using autobahn package with twisted which shows debug message for me every connect to websocket. I tried to switch logging level to info but had no success: Is there an easy way to switch log level? Updated. Here is the twisted_service.py: I run it using twistd script: twistd -noy twisted_service.py And i get a message: 2018-03-03T10:45:22+0500 [builtin.WebsocketService#debug] start