@@ -50,10 +50,7 @@ def _make_request(
50
50
url = f"{ self .base_url } { path } "
51
51
headers = {"Content-Type" : "application/json" } if data else {}
52
52
53
- request_data = None
54
- if data :
55
- request_data = json .dumps (data ).encode ("utf-8" )
56
- print (f"JSON payload being sent: { request_data .decode ('utf-8' )} " )
53
+ request_data = json .dumps (data ).encode ("utf-8" ) if data else None
57
54
58
55
request = urllib .request .Request (
59
56
url , method = method , data = request_data , headers = headers
@@ -75,7 +72,6 @@ def list_actions(self) -> Dict[str, Any]:
75
72
def trigger_action (self , action_request : ActionRequest ) -> Dict [str , Any ]:
76
73
"""Trigger a new action"""
77
74
request_data = action_request .to_dict ()
78
- print (f"Sending HTTP request data: { request_data } " )
79
75
return self ._make_request ("POST" , "/action" , request_data )
80
76
81
77
def get_action_status (self , action_id : str ) -> Dict [str , Any ]:
@@ -93,8 +89,6 @@ def execute_rladmin_command(
93
89
if bdb_id :
94
90
command_string = f"rladmin -b { bdb_id } { command } "
95
91
96
- print (f"Sending rladmin command: { command_string } " )
97
-
98
92
headers = {"Content-Type" : "text/plain" }
99
93
100
94
request = urllib .request .Request (
0 commit comments