go-zero
go-zero copied to clipboard
feat: stmt support sql custom mask handle
在 finish 记录日志时,可以自定义 sql 掩码处理,防止日志泄密
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 95.10%. Comparing base (
8690859) to head (010d81e). Report is 75 commits behind head on master.
Additional details and impacted files
| Files | Coverage Δ | |
|---|---|---|
| core/stores/sqlx/stmt.go | 100.00% <100.00%> (ø) |
@kevwan
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@kevwan
The processing here only performs mask processing on the audit log of sqlx. It may be better if logx supports the mask capability at the framework layer. We plan to support this feature in the near future.
ok