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 1717
1818class  GeneralSudsPlugin (MessagePlugin ):
1919    def  __init__ (self , ** kwargs ):
20+         
21+         self .request_logger  =  logging .getLogger ('fedex.request' )
22+         self .response_logger  =  logging .getLogger ('fedex.response' )
2023        self .kwargs  =  kwargs 
2124
2225    def  marshalled (self , context ):
2326        context .envelope  =  context .envelope .prune ()
2427
2528    def  sending (self , context ):
26-         logging .info ("FedEx Request {}" .format (context .envelope ))
29+         self . request_logger .info ("FedEx Request {}" .format (context .envelope ))
2730
2831    def  received (self , context ):
29-         logging .info ("FedEx Response {}" .format (context .reply ))
32+         self . response_logger .info ("FedEx Response {}" .format (context .reply ))
3033
3134
3235class  FedexBaseServiceException (Exception ):
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments