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

Enable configuring test log level via env var #4506

Merged
merged 5 commits into from Jan 29, 2019

Conversation

Projects
None yet
3 participants
@richvdh
Copy link
Member

richvdh commented Jan 29, 2019

I got fed up with always adding '@unittest.DEBUG' every time I needed to
debug a test.

richvdh added some commits Jan 29, 2019

Enable configuring test log level via env var
I got fed up with always adding '@unittest.DEBUG' every time I needed to debug
a test.

@richvdh richvdh requested a review from matrix-org/synapse-core Jan 29, 2019

Show resolved Hide resolved tests/test_utils/logging.py Outdated

richvdh added some commits Jan 29, 2019

Rename module
to avoid conflict with the stdlib 'logging' module

@richvdh richvdh requested a review from hawkowl Jan 29, 2019

@codecov-io

This comment has been minimized.

Copy link

codecov-io commented Jan 29, 2019

Codecov Report

Merging #4506 into develop will decrease coverage by 0.19%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           develop    #4506     +/-   ##
==========================================
- Coverage    74.75%   74.56%   -0.2%     
==========================================
  Files          336      336             
  Lines        34156    34330    +174     
  Branches      5554     5578     +24     
==========================================
+ Hits         25535    25598     +63     
- Misses        7046     7159    +113     
+ Partials      1575     1573      -2

@richvdh richvdh merged commit 5488cad into develop Jan 29, 2019

5 checks passed

ci/circleci: sytestpy2merged Your tests passed on CircleCI!
Details
ci/circleci: sytestpy2postgresmerged Your tests passed on CircleCI!
Details
ci/circleci: sytestpy3merged Your tests passed on CircleCI!
Details
ci/circleci: sytestpy3postgresmerged Your tests passed on CircleCI!
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@richvdh richvdh deleted the rav/test_logging branch Jan 29, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment