Skip to content
Advertisement

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:

JavaScript

Is there an easy way to switch log level?

Updated.

Here is the twisted_service.py:

JavaScript

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 service

logging.basicConfig didn’t help.

Advertisement

Answer

I found the solution:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement