Twisted starting/stopping factory/protocol less noisy log messages

前端 未结 3 1653
面向向阳花
面向向阳花 2020-12-19 07:26

Is there a way to tell to twistd to not log all factory and protocol start and stop. I use many type of protocols and performs a lot of connections ... and my log file grows

3条回答
  •  温柔的废话
    2020-12-19 07:59

    The other answers are great, but you can also do this at the logging level only:

    import logging
    logging.getLogger('twisted').setLevel(logging.CRITICAL)
    

提交回复
热议问题