Python noise level

Does anyone know how to reduce the volume of log output from dev_appserver.py?

The noise level of these magazines is just driving me crazy. I know how to make such a configuration in Java using log4j, but I really got lost here on the python Google app.

+3
source share
1 answer

Solution 1

You can instruct the logging library only log operators at a level above or below the specified level logging.setLevel(). If you set this threshold level above a level that contains messages that you do not want, you filter out unwanted messages with dev_appserver.

, :

  • , , , , (, WARN).
  • . , dev.

2.

, DEBUG INFO, .

dev_appserver.py( ). , , ( ) - Python: .

+1

Source: https://habr.com/ru/post/1777828/


All Articles