Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 51449f3

Browse files
committed
refactor: improve logging in StegoController for encoding retrieval and deletion
1 parent ae5f145 commit 51449f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/example/springprojectsteganographytool/controllers/StegoController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ public ResponseEntity<List<StegoEncodeResponseDTO>> listAllEncodings() {
264264
*/
265265
@GetMapping(path = "/encodings/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
266266
public ResponseEntity<StegoEncodeResponseDTO> getById(@PathVariable("id") UUID id) {
267-
log.info("In Controller- Getting encoding by ID from DB. ");
267+
log.info("In Controller- Getting encoding by ID: {}", id);
268268
return ResponseEntity.ok(steganographyService.getById(id));
269269
}
270270

@@ -276,7 +276,7 @@ public ResponseEntity<StegoEncodeResponseDTO> getById(@PathVariable("id") UUID i
276276
*/
277277
@DeleteMapping(path = "/encodings/{id}")
278278
public ResponseEntity<Void> deleteById(@PathVariable("id") UUID id) {
279-
log.info("In Controller- Deleting encoding by ID from DB. ");
279+
log.info("In Controller- Deleting encoding by ID: {}", id);
280280
steganographyService.deleteById(id);
281281
return ResponseEntity.noContent().build();
282282
}

0 commit comments

Comments
 (0)