From 2bc49d425006b1f56f5ad71be970ae6114612d9a Mon Sep 17 00:00:00 2001 From: EddeCCC Date: Fri, 1 Nov 2024 10:15:58 +0100 Subject: [PATCH] use logger --- .../samples/petclinic/customers/web/PetResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java b/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java index 0e5ec7daf..ab0a3bb29 100644 --- a/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java +++ b/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java @@ -128,6 +128,6 @@ private Pet findPetById(int petId) { * Helper method for instrumentation. */ private void printPetType(String petType) { - System.out.println("Saved: " + petType); + log.info("Saved: {}", petType); } }