-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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: format error log #1806
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1806 +/- ##
=============================================
- Coverage 55.08% 55.04% -0.05%
+ Complexity 2356 2352 -4
=============================================
Files 421 421
Lines 14264 14262 -2
Branches 1710 1710
=============================================
- Hits 7858 7851 -7
- Misses 5680 5682 +2
- Partials 726 729 +3
Continue to review full report at Codecov.
|
} | ||
throw new FrameworkException(FrameworkErrorCode.ProcessTypeNotFound); | ||
} | ||
|
||
ProcessRouter processRouter = processRouters.get(processType.getCode()); | ||
if (processRouter == null) { | ||
LOGGER.error("Cannot find process router by type "+ processType.getCode() +", context=" + context); | ||
LOGGER.error("Cannot find process router by type {}, context = {}",processType.getCode(),context); |
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.
code format
multiple places
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.
sorry?what is mean ?
server/src/main/java/io/seata/server/store/file/FileTransactionStoreManager.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/seata/server/store/file/FileTransactionStoreManager.java
Outdated
Show resolved
Hide resolved
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
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
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
* 'develop' of https://github.com/seata/seata: Remove deprecated JVM arguments in Java 11 (apache#1824) style: adjust check style (apache#1820) optimize: format error log (apache#1806) optimize: update codecov.yml (apache#1815) optimize: adjust codecov configuration (apache#1811) fix unexcepted exception can roll back (apache#1796) optimize: reduce unnecessary synchronized (apache#1799) bugfix: connectionproxy prepareStatement not in global transaction (apache#1805) bugfix: fix can't use select for update in oracle (apache#1780) test:changing HashMap to LinkedHashMap for deterministic iterations (apache#1802) feature:gzip compressor (apache#1460)
Ⅰ. Describe what this PR did
optimize:LOGGER.error(),Use placeholders to avoid string concatenation
Ⅱ. 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