mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Allow to ignore warnings by id
This commit is contained in:
parent
d83a261290
commit
c2968ccf39
4 changed files with 19 additions and 1 deletions
|
|
@ -106,6 +106,8 @@ Setting name (followed by default value, if any)
|
|||
``LOG_FILTER = []`` A list of tuples containing the logging level (up to ``warning``)
|
||||
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']``
|
||||
``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
|
||||
|
|
@ -774,6 +776,12 @@ be filtered out.
|
|||
|
||||
For example: ``[(logging.WARN, 'TAG_SAVE_AS is set to False')]``
|
||||
|
||||
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']``
|
||||
|
||||
.. _reading_only_modified_content:
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue