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

功能优化建议:debug级别的SQL参数值考虑超长自动截断后再打印 #5

Open
BruceAn1978 opened this issue Nov 6, 2020 · 0 comments

Comments

@BruceAn1978
Copy link

insert或者update的SQL日志在字段值较小时,日志很清晰。但是如果某个字段值包含几千个文本的时候,整个日志就基本没法看了,尤其是在循环中插入或者更新的话。

不知道这个修改是要在mybatis还是mybatis plus中做。可以在打印前判断如果是字符串类型的,而且长度超过了比如200个,就自动截断,后缀...表示过长,截断了。

这样的话,整个日志的就会很整洁,可读性很高。

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

No branches or pull requests

1 participant