-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
optimize: change client.log.exceptionRate to log.exceptionRate #3247
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, use optimize: as the heading prefix
Codecov Report
@@ Coverage Diff @@
## develop #3247 +/- ##
=============================================
- Coverage 50.88% 50.86% -0.02%
+ Complexity 3281 3278 -3
=============================================
Files 612 612
Lines 20113 20113
Branches 2519 2519
=============================================
- Hits 10235 10231 -4
- Misses 8852 8853 +1
- Partials 1026 1029 +3
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plz change LogProperties, otherwise seata could not read config from yml
&& plz change application.properties, config.txt, application.yml
需要修改一下LogProperties这个类,不然的话seata是没办法从yml(properties)文件读取配置,
同时需要把application.properties, config.txt, application.yml里面的配置项也对应修改一下
script/client/conf/file.conf
Outdated
@@ -66,7 +66,7 @@ client { | |||
logSerialization = "jackson" | |||
logTable = "undo_log" | |||
} | |||
log { | |||
} | |||
log { | |||
exceptionRate = 100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
调一下缩进,强迫症
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
缩进改了, idea 的默认对其他类型的配置文件是4个空格的缩进。
可以通过加入 .editorconfig 配置文件, 对java,properties,yml.conf 等后缀的缩进排版统一。
如果这种事情发生的比较多, 就可以考虑一下。
反正idea能直接导出.editorconfig 文件, 在做一点点修改就可以了
@@ -151,7 +151,7 @@ | |||
"defaultValue": true | |||
}, | |||
{ | |||
"name": "seata.client.log.exception-rate", | |||
"name": "seata.log.exception-rate", | |||
"type": "java.lang.Integer", | |||
"sourceType": "io.seata.spring.boot.autoconfigure.properties.client.LogProperties", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LogProperties 这个类要改
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改
…te_1101 # Conflicts: # seata-spring-boot-starter/src/main/java/io/seata/spring/boot/autoconfigure/StarterConstants.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT, 顺便去官网提交一下pr修改一下对应的配置项
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT, 顺便去官网提交一下pr修改一下对应的配置项
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ⅰ. Describe what this PR did
StackTraceLogger 打印的debug,info,error 日志会根据配置 client.log.exceptionRate 随机打印错误栈。
事实上info 日志在 rm, warn日志在tm, error 日志在tc. 所以 client 的前缀就不准确。 希望去掉client前缀
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews