How can I output what SUDs is generating/receiving?

前端 未结 7 1811
甜味超标
甜味超标 2020-12-01 07:02

I have the following code:

from suds.client import Client
import logging

logging.basicConfig(level=logging.INFO)
logging.getLogger(\'suds.client\').setLevel         


        
7条回答
  •  南方客
    南方客 (楼主)
    2020-12-01 08:03

    SUDS provides some convenience methods to do just that:

     client.last_sent()
     client.last_received()
    

    These should provide you with what you need. I use them for error logging. The API doc for Client class should have any extra info you need.

提交回复
热议问题