File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 17
17
18
18
class GeneralSudsPlugin (MessagePlugin ):
19
19
def __init__ (self , ** kwargs ):
20
+
21
+ self .request_logger = logging .getLogger ('fedex.request' )
22
+ self .response_logger = logging .getLogger ('fedex.response' )
20
23
self .kwargs = kwargs
21
24
22
25
def marshalled (self , context ):
23
26
context .envelope = context .envelope .prune ()
24
27
25
28
def sending (self , context ):
26
- logging .info ("FedEx Request {}" .format (context .envelope ))
29
+ self . request_logger .info ("FedEx Request {}" .format (context .envelope ))
27
30
28
31
def received (self , context ):
29
- logging .info ("FedEx Response {}" .format (context .reply ))
32
+ self . response_logger .info ("FedEx Response {}" .format (context .reply ))
30
33
31
34
32
35
class FedexBaseServiceException (Exception ):
You can’t perform that action at this time.
0 commit comments