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

Unnecessarily printed stacktraces in REST API #2197

Open
holgerhagen opened this issue Mar 24, 2023 · 0 comments
Open

Unnecessarily printed stacktraces in REST API #2197

holgerhagen opened this issue Mar 24, 2023 · 0 comments

Comments

@holgerhagen
Copy link
Contributor

Do we really want to print the entire stacktraces in such precise error cases?

2023-03-24T08:56:37.5119304Z 2023-03-24 08:56:37.482 ERROR 1876 --- [-auto-52-exec-1] p.t.c.rest.TaskanaRestExceptionHandler : Error occurred during processing of rest request: ExceptionRepresentationModel [error=ErrorCode [key=CLASSIFICATION_WITH_ID_NOT_FOUND, messageVariables={classificationId=CLI:200000000000000000000000000000000004}], status=404, exception=pro.taskana.classification.api.exceptions.ClassificationNotFoundException, message=Classification with id 'CLI:200000000000000000000000000000000004' wasn't found, path=/api/v1/classifications/CLI:200000000000000000000000000000000004]
2023-03-24T08:56:37.5120804Z
2023-03-24T08:56:37.5121963Z pro.taskana.classification.api.exceptions.ClassificationNotFoundException: Classification with id 'CLI:200000000000000000000000000000000004' wasn't found
2023-03-24T08:56:37.5123737Z at pro.taskana.classification.internal.ClassificationServiceImpl.getClassification(ClassificationServiceImpl.java:100) ~[taskana-core-6.0.2.jar:6.0.2]
2023-03-24T08:56:37.5125181Z at pro.taskana.classification.rest.ClassificationController.getClassification(ClassificationController.java:110) ~[classes/:na]
2023-03-24T08:56:37.5126239Z at pro.taskana.classification.rest.ClassificationController$$FastClassBySpringCGLIB$$80c77314.invoke() ~[classes/:na]
2023-03-24T08:56:37.5127731Z at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.3.25.jar:5.3.25]

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

No branches or pull requests

1 participant