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

Logging Aspect #1551

Open
banterCZ opened this issue Jun 3, 2024 · 1 comment
Open

Logging Aspect #1551

banterCZ opened this issue Jun 3, 2024 · 1 comment
Assignees

Comments

@banterCZ
Copy link
Member

banterCZ commented Jun 3, 2024

Controllers log input and successful end. It is great but noisy. Let's create a logging aspect to replace this example.

@PostMapping("/create")
public ObjectResponse<OperationDetailResponse> createOperation(@RequestBody ObjectRequest<OperationCreateRequest> request) throws Exception {
    logger.info("OperationCreateRequest received: {}", request);
    final ObjectResponse<OperationDetailResponse> response = new ObjectResponse<>(service.createOperation(request.getRequestObject()));
    logger.info("OperationCreateRequest succeeded: {}", response);
    return response;
}
@banterCZ banterCZ self-assigned this Jun 3, 2024
@zcgandcomp
Copy link
Member

Put on technical grooming agenda.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants