@@ -139,7 +139,7 @@ def set_configuration(logger, configuration, uri, headers=None, timeout=None, ap
139
139
r = do_api_call ('PUT' , get_uri (uri , 'api' , 'v1' , 'configuration' ),
140
140
data = configuration , headers = headers , timeout = timeout , api_timeout = api_timeout )
141
141
if r is None or r .status_code != 201 :
142
- logger .error ('could not set configuration to web application' )
142
+ logger .error (f 'could not set configuration to web application { r } ' )
143
143
return False
144
144
except RequestException as exception :
145
145
logger .error ('could not set configuration to web application: {}' .
@@ -180,7 +180,7 @@ def add_project(logger, project, uri, headers=None, timeout=None, api_timeout=No
180
180
r = do_api_call ('POST' , get_uri (uri , 'api' , 'v1' , 'projects' ),
181
181
data = project , headers = headers , timeout = timeout , api_timeout = api_timeout )
182
182
if r is None or r .status_code != 201 :
183
- logger .error (f"could not add project '{ project } ' in web application" )
183
+ logger .error (f"could not add project '{ project } ' in web application: { r } " )
184
184
return False
185
185
except RequestException as exception :
186
186
logger .error ("could not add project '{}' to web application: {}" .
@@ -195,7 +195,7 @@ def _delete_project(logger, project, uri, headers=None, timeout=None, api_timeou
195
195
r = do_api_call ('DELETE' , uri ,
196
196
headers = headers , timeout = timeout , api_timeout = api_timeout )
197
197
if r is None or r .status_code != 204 :
198
- logger .error (f"could not delete project '{ project } ' in web application" )
198
+ logger .error (f"could not delete project '{ project } ' in web application: { r } " )
199
199
return False
200
200
except RequestException as exception :
201
201
logger .error ("could not delete project '{}' in web application: {}" .
0 commit comments