Skip to content

Commit 4afb6fa

Browse files
author
Dennis Labordus
committed
Added logging on endpoints.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 0eeba49 commit 4afb6fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/org/lfenergy/compas/scl/auto/alignment/rest/v1/SclAutoAlignmentResource.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ public SclAutoAlignmentResource(SclAutoAlignmentService compasCimMappingService)
4545
@Consumes(MediaType.APPLICATION_XML)
4646
@Produces(MediaType.APPLICATION_XML)
4747
public SclAutoAlignResponse alignment(@Valid SclAutoAlignRequest request) {
48+
LOGGER.info("Auto align SCL for Substation(s) {}.", request.getSubstationNames());
49+
4850
String who = jsonWebToken.getClaim(userInfoProperties.who());
4951
LOGGER.trace("Username used for Who {}", who);
5052

@@ -58,6 +60,7 @@ public SclAutoAlignResponse alignment(@Valid SclAutoAlignRequest request) {
5860
@Produces(MediaType.APPLICATION_SVG_XML)
5961
@Path("/svg")
6062
public String svg(@Valid SclAutoAlignSVGRequest request) {
63+
LOGGER.info("Creating SVG for Substation {}.", request.getSubstationName());
6164
return sclAutoAlignmentService.getSVG(request.getSclData(), request.getSubstationName());
6265
}
6366
}

0 commit comments

Comments
 (0)