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

optimize: format error log #1806

Merged
merged 4 commits into from
Oct 25, 2019
Merged

optimize: format error log #1806

merged 4 commits into from
Oct 25, 2019

Conversation

lightClouds917
Copy link
Contributor

Ⅰ. 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

@codecov-io
Copy link

codecov-io commented Oct 23, 2019

Codecov Report

Merging #1806 into develop will decrease coverage by 0.04%.
The diff coverage is 6.06%.

Impacted file tree graph

@@              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
Impacted Files Coverage Δ Complexity Δ
.../java/io/seata/server/coordinator/DefaultCore.java 42.68% <0%> (ø) 26 <0> (ø) ⬇️
...n/java/io/seata/server/lock/db/DataBaseLocker.java 24.13% <0%> (ø) 5 <0> (ø) ⬇️
...in/java/io/seata/tm/api/TransactionalTemplate.java 73.4% <0%> (ø) 24 <0> (ø) ⬇️
.../java/io/seata/server/lock/DefaultLockManager.java 44.44% <0%> (ø) 10 <0> (ø) ⬇️
...seata/saga/proctrl/impl/ProcessControllerImpl.java 61.53% <0%> (ø) 4 <0> (ø) ⬇️
...octrl/process/impl/CustomizeBusinessProcessor.java 53.12% <0%> (ø) 7 <0> (ø) ⬇️
...server/store/file/FileTransactionStoreManager.java 59.21% <11.11%> (-0.99%) 29 <0> (ø)
...ata/saga/proctrl/handler/DefaultRouterHandler.java 60% <33.33%> (ø) 7 <0> (ø) ⬇️
...va/io/seata/tm/api/transaction/NoRollbackRule.java 85.71% <0%> (-1.79%) 4% <0%> (-1%)
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f382541...642fbe1. Read the comment docs.

}
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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code format
multiple places

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry?what is mean ?

@slievrly slievrly changed the title optimize:LOGGER.error() optimize: format error log Oct 24, 2019
Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@zjinlei zjinlei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@zjinlei zjinlei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zjinlei zjinlei merged commit dc060fe into apache:develop Oct 25, 2019
dangquocbang pushed a commit to dangquocbang/seata that referenced this pull request Oct 27, 2019
* '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)
@slievrly slievrly added this to the 1.0 milestone Dec 2, 2019
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

Successfully merging this pull request may close these issues.

4 participants