mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Assigned filtering IDs to logger messages
Any ID has common scheme 'log-level.module.description', so it contains three period-separated groups with possible dashes inside each group. List of all IDs can be obtained by the following command (in an Unix environment): ``` $ grep -R "'id': '" pelican | sed -e "s/.*'id': '\([^']\+\)'.*/\1/" | sort -u ``` Fixes #1594.
This commit is contained in:
parent
c2968ccf39
commit
b3a5d87a9e
11 changed files with 196 additions and 97 deletions
|
|
@ -107,7 +107,7 @@ Setting name (followed by default value, if any)
|
|||
and the message to be ignored.
|
||||
For example: ``[(logging.WARN, 'TAG_SAVE_AS is set to False')]``
|
||||
``LOG_FILTER_IDS = []`` A list of containing IDs of messages to be ignored.
|
||||
For example: ``['warn.img.alt.empty']``
|
||||
For example: ``['warn.readers.empty-alt-attribute']``
|
||||
``READERS = {}`` A dictionary of file extensions / Reader classes for Pelican to
|
||||
process or ignore. For example, to avoid processing .html files,
|
||||
set: ``READERS = {'html': None}``. To add a custom reader for the
|
||||
|
|
@ -780,7 +780,7 @@ It's hard to ignore a group of messages containing dynamic substrings (e.g.
|
|||
paths to files). Such messages can be ignored using the ``LOG_FILTER_IDS``
|
||||
setting.
|
||||
|
||||
For example: ``['warn.img.alt.empty']``
|
||||
For example: ``['warn.readers.empty-alt-attribute']``
|
||||
|
||||
.. _reading_only_modified_content:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue