Skip to content

Stack Trace providing too much information when e.g. org.springframework.dao.DuplicateKeyException is thrown #1985

Closed
@amundsor

Description

@amundsor

Sorry if the responsible for this issue doesn't belong in this repo, but I don't know any better. 🦆

We are using Spring Data JDBC in our application, and when these kind of exceptions are thrown, the default is to print the entire sql which failed into console. I'm thinking that i want most of the information like db-operation, table, columns, etc, etc, but the actual data could be sensitive and should not appear in logs by default.

Could it be an idea to atleast hide the actual data behind debug/trace or another kind of solution?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions