Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix logging statement #1370

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/main/java/alfio/manager/NotificationManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ private static Function<Map<String, String>, byte[]> generateTicketPDF(EventRepo
TemplateProcessor.getSubscriptionDetailsModelForTicket(ticket, subscriptionRepository::findDescriptorBySubscriptionId, locale),
additionalServiceHelper.findForTicket(ticket, event));
} catch (IOException e) {
log.warn("was not able to generate ticket pdf for ticket with id" + ticket.getId(), e);
log.warn("Failed to generate ticket pdf for ticket with id" + ticket.getId(), e);
}
return baos.toByteArray();
};
Expand Down Expand Up @@ -257,7 +257,7 @@ private static Function<Map<String, String>, byte[]> receiptOrInvoiceFactory(Pur
reservationEmailModel.put("event", purchaseContext);

if(receipt.isEmpty()) {
log.warn("was not able to generate the receipt for reservation id " + reservationId + " for locale " + language);
log.warn("Failed to generate the receipt for reservation id " + reservationId + " for locale " + language);
}
return receipt.orElse(null);
};
Expand Down Expand Up @@ -561,7 +561,7 @@ private static Function<Map<String, String>, byte[]> generateSubscriptionPDF(Org
extensionManager,
purchaseContextFieldManager);
} catch (IOException e) {
log.warn("was not able to generate subscription pdf for " + subscription.getId(), e);
log.warn("Failed to generate subscription pdf for " + subscription.getId(), e);
}
return baos.toByteArray();
};
Expand Down