Allow to ignore warnings by id

This commit is contained in:
Alexander Turenko 2016-08-31 02:18:27 +03:00
commit c2968ccf39
4 changed files with 19 additions and 1 deletions

View file

@ -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: