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

terror: replace sirupsen/logrus by pingcap/log #693

Merged
merged 4 commits into from
Dec 23, 2019
Merged

Conversation

kennytm
Copy link
Contributor

@kennytm kennytm commented Dec 19, 2019

What problem does this PR solve?

Apply pingcap/tidb#13459 on this repository.

Fixed some unit test failures on Windows.

What is changed and how it works?

Replaced the only use of sirupsen/logrus in terror by pingcap/log.

Check List

Tests

  • Unit test

Code changes

  • Has exported function/method change
    • The three log-related functions (terror.MustNil, terror.Call and terror.Log) now write logs to the default logger of pingcap/log instead of logrus.

Side effects

Related changes

also fixed test failure on Windows
@kennytm kennytm added type/enhancement New feature or request status/PTAL labels Dec 19, 2019
@kennytm kennytm requested a review from a team December 19, 2019 18:17
@ghost ghost requested review from tangenta and removed request for a team December 19, 2019 18:17
also, stop verifying parser.go and code format in the integration tests...
those steps are redundant.
@codecov
Copy link

codecov bot commented Dec 19, 2019

Codecov Report

Merging #693 into master will not change coverage.
The diff coverage is 0%.

@@           Coverage Diff           @@
##           master     #693    /-   ##
=======================================
  Coverage   79.86%   79.86%           
=======================================
  Files          37       37           
  Lines       13654    13654           
=======================================
  Hits        10905    10905           
  Misses       2103     2103           
  Partials      646      646

Copy link
Contributor

@tangenta tangenta left a comment

Choose a reason for hiding this comment

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

LGTM

@tangenta tangenta added the status/LGT1 LGT1 label Dec 20, 2019
@kennytm
Copy link
Contributor Author

kennytm commented Dec 20, 2019

PTAL @tiancaiamao

@tiancaiamao
Copy link
Collaborator

LGTM

@tiancaiamao tiancaiamao added status/LGT2 LGT2 and removed status/LGT1 LGT1 labels Dec 23, 2019
@kennytm
Copy link
Contributor Author

kennytm commented Dec 23, 2019

(CLA broken )

@kennytm kennytm closed this Dec 23, 2019
@kennytm kennytm reopened this Dec 23, 2019
@kennytm kennytm merged commit 6a6db43 into master Dec 23, 2019
@kennytm kennytm deleted the kennytm/misc-fixes branch December 23, 2019 06:12
tiancaiamao added a commit to tiancaiamao/parser that referenced this pull request Apr 27, 2021
* terror: replace sirupsen/logrus by pingcap/log

also fixed test failure on Windows

* circle.yml: restrict test parallelism in integration tests

also, stop verifying parser.go and code format in the integration tests...
those steps are redundant.

* codecov: add codecov.yml, based on pingcap/tidb#9618

Co-authored-by: tiancaiamao <[email protected]>
lyonzhi pushed a commit to lyonzhi/parser that referenced this pull request Apr 25, 2024
* terror: replace sirupsen/logrus by pingcap/log

also fixed test failure on Windows

* circle.yml: restrict test parallelism in integration tests

also, stop verifying parser.go and code format in the integration tests...
those steps are redundant.

* codecov: add codecov.yml, based on pingcap/tidb#9618

Co-authored-by: tiancaiamao <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT2 LGT2 type/enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants