Skip to main content

Pylint plugin for checking usage of log.exception

Project description

Pylint plugin for finding logging calls inside exception handlers, and suggest they include exc_info=True, or change extra={'stack': True} to exc_info=True to get the stack from the exception instead of the one from the log statement.

Installation

$ pip install sentry_stack_checker

Usage

$ pylint --load-plugins sentry_stack_checker <module> -E -d all -e R9501
$ pylint --load-plugins sentry_stack_checker <module> -E -d all -e R9502

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sentry-stack-checker-0.3.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

sentry_stack_checker-0.3-py2.py3-none-any.whl (3.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sentry-stack-checker-0.3.tar.gz.

File metadata

File hashes

Hashes for sentry-stack-checker-0.3.tar.gz
Algorithm Hash digest
SHA256 de4630a9ae58f1c9d32f21c96d2d8c10b452eddd49d10c36b33fbf4c7e76eb61
MD5 6e25bfdf1cd2cf50bcd8e646c8de224b
BLAKE2b-256 dede44de6bca4359569cb677c0506fee34c958f09db371655a260bf3f26817a4

See more details on using hashes here.

File details

Details for the file sentry_stack_checker-0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sentry_stack_checker-0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9947a3c7f894b708f0748df61266a661b4c0f66c280e6503f182bbcfb4b171be
MD5 f8a2c3a09cee07c7b671b0b61bd0e5ea
BLAKE2b-256 80ecffd56a695b805ec985018bb90088d16d9a569df8588eb2da24be81b1ffd3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page