and now logging
This commit is contained in:
@@ -519,6 +519,9 @@ public class PretixManager implements SmartInitializingSingleton {
|
||||
*/
|
||||
public JsonElement request(String path, HttpMethod method, JsonElement payload,
|
||||
MultiValueMap<String, String> queryParameters) {
|
||||
|
||||
logger.debug("method:" + method.toString() + ", path: " + path + ", host" + host);
|
||||
|
||||
WebClient.RequestBodySpec request = webClient.method(method)
|
||||
.uri(uriBuilder -> uriBuilder.path(path).queryParams(queryParameters).build());
|
||||
|
||||
|
||||
@@ -718,7 +718,6 @@ public class MembershipManager {
|
||||
JsonElement response = pretixManager.request(path, HttpMethod.GET, queryParams);
|
||||
|
||||
if (response == null) {
|
||||
logger.warn("results: " + result.size(), queryParams);
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -730,11 +729,9 @@ public class MembershipManager {
|
||||
}
|
||||
|
||||
if (orderPositions.has("next") && !orderPositions.get("next").isJsonNull()) {
|
||||
logger.warn("next: " + orderPositions.get("next").getAsString());
|
||||
return fetchAllOrderPositions(orderPositions.get("next").getAsString(), queryParams, result);
|
||||
}
|
||||
|
||||
logger.warn("results: " + result.size(), queryParams);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user