[SIS-xxx] fixing logging setup in case of a debra donation loading error

This commit is contained in:
Sheldan
2023-11-30 21:02:16 +01:00
parent d6470e3714
commit b345fa5502

View File

@@ -148,10 +148,8 @@ public class DonationService {
.build(); .build();
Response response = okHttpClient.newCall(request).execute(); Response response = okHttpClient.newCall(request).execute();
if(!response.isSuccessful()) { if(!response.isSuccessful()) {
if (log.isDebugEnabled()) { log.error("Failed to retrieve donation response. Response had code {} with body {} and headers {}.",
log.error("Failed to retrieve donation response. Response had code {} with body {}.", response.code(), response.body().string(), response.headers());
response.code(), response.body());
}
throw new DonationAmountNotFoundException(); throw new DonationAmountNotFoundException();
} }
Gson gson = getGson(); Gson gson = getGson();