File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -79,5 +79,6 @@ def get_registry(cls):
79
79
80
80
81
81
class DebugOpt (DebugOptEnum ):
82
- WS_REPLIES = 1 , N_ ('Web Service Replies' ), N_ ('Log content of web service replies' )
83
- PLUGIN_FULLPATH = 2 , N_ ('Plugin Fullpath' ), N_ ('Log plugin full paths' )
82
+ PLUGIN_FULLPATH = 1 , N_ ('Plugin Fullpath' ), N_ ('Log plugin full paths' )
83
+ WS_POST = 2 , N_ ('Web Service Post Data' ), N_ ('Log data of web service post requests' )
84
+ WS_REPLIES = 3 , N_ ('Web Service Replies' ), N_ ('Log content of web service replies' )
Original file line number Diff line number Diff line change @@ -589,7 +589,8 @@ def post_url(self, **kwargs):
589
589
kwargs ['method' ] = 'POST'
590
590
kwargs ['parse_response_type' ] = kwargs .get ('parse_response_type' , DEFAULT_RESPONSE_PARSER_TYPE )
591
591
kwargs ['mblogin' ] = kwargs .get ('mblogin' , True )
592
- log .debug ("POST-DATA %r" , kwargs ['data' ])
592
+ if DebugOpt .WS_POST .enabled :
593
+ log .debug ("POST-DATA %r" , kwargs ['data' ])
593
594
return self .add_request (WSRequest (** kwargs ))
594
595
595
596
def put_url (self , ** kwargs ):
You can’t perform that action at this time.
0 commit comments