[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();
Response response = okHttpClient.newCall(request).execute();
if(!response.isSuccessful()) {
if (log.isDebugEnabled()) {
log.error("Failed to retrieve donation response. Response had code {} with body {}.",
response.code(), response.body());
}
log.error("Failed to retrieve donation response. Response had code {} with body {} and headers {}.",
response.code(), response.body().string(), response.headers());
throw new DonationAmountNotFoundException();
}
Gson gson = getGson();