pytest: can't see logging messages during pytest_sessionfinish
Hi,
the following plugin won’t show any logging message during pytest_sessionfinish
.
import logging
logger = logging.getLogger("my.plugin")
def pytest_runtestloop(session):
logger.info("this is showing")
def pytest_sessionfinish(session, exitstatus):
logger.info("this is not showing")
Executed with the following configuration:
[pytest]
; logging options
log_cli = true
log_level = INFO
log_format = %(asctime)s %(name)s: %(levelname)s %(message)s
Thanks, Andrea
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (11 by maintainers)
Commits related to this issue
- Fix logging usage in hooks pytest_sessionstart/finish #3340 — committed to vbarbaresi/pytest by deleted user 6 years ago
- Fix logging usage in hooks pytest_sessionstart/finish #3340 — committed to vbarbaresi/pytest by deleted user 6 years ago
- Update pytest to 3.9.2 (#395) This PR updates [pytest](https://pypi.org/project/pytest) from **3.9.1** to **3.9.2**. <details> <summary>Changelog</summary> ### 3.9.2 ``` ... — committed to peterbe/django-peterbecom by pyup-bot 6 years ago
- Update pytest to 3.9.2 (#14) This PR updates [pytest](https://pypi.org/project/pytest) from **3.9.1** to **3.9.2**. <details> <summary>Changelog</summary> ### 3.9.2 ``` ... — committed to proof-media/rchain-grpc by pyup-bot 6 years ago
- Update pytest to 3.9.2 (#1264) This PR updates [pytest](https://pypi.org/project/pytest) from **3.8.2** to **3.9.2**. <details> <summary>Changelog</summary> ### 3.9.2 ``` ... — committed to mozilla-services/tecken by pyup-bot 6 years ago
- Merge #43 43: Update pytest to 3.9.3 r=rehandalal a=pyup-bot This PR updates [pytest](https://pypi.org/project/pytest) from **3.8.2** to **3.9.3**. <details> <summary>Changelog</summary> ... — committed to rehandalal/therapist by bors[bot] 6 years ago
- Merge #1605 1605: Scheduled weekly dependency update for week 43 r=peterbe a=pyup-bot ### Update [botocore](https://pypi.org/project/botocore) from **1.12.28** to **1.12.33**. <details> <su... — committed to mozilla/normandy by bors[bot] 6 years ago
- Scheduled weekly dependency update for week 52 (#75) ### Update [sphinx](https://pypi.org/project/sphinx) from **1.7.8** to **1.8.3**. <details> <summary>Changelog</summary> ... — committed to wdv4758h/python-everywhere by pyup-bot 5 years ago
Thank you very much
Great! Thx for working on this @vbarbaresi