Python request how write to logging file only error response?

后端 未结 0 1605
半阙折子戏
半阙折子戏 2021-01-27 06:34

I am trying to write logs file when the response to an API is different from 200

This is my code

requests_log = logging.getLogger("urllib3")
requ         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题