forked from github/pelican
There are small typos in: - docs/tips.rst - pelican/tests/__init__.py Fixes: - Should read `module` rather than `modulole`. - Should read `console` rather than `cosole`. Signed-off-by: Tim Gates <tim.gates@iress.com>
15 lines
461 B
Python
15 lines
461 B
Python
import logging
|
|
import warnings
|
|
|
|
from pelican.log import log_warnings
|
|
|
|
# redirect warnings module to use logging instead
|
|
log_warnings()
|
|
|
|
# setup warnings to log DeprecationWarning's and error on
|
|
# warnings in pelican's codebase
|
|
warnings.simplefilter("default", DeprecationWarning)
|
|
warnings.filterwarnings("error", ".*", Warning, "pelican")
|
|
|
|
# Add a NullHandler to silence warning about no available handlers
|
|
logging.getLogger().addHandler(logging.NullHandler())
|