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:
Alexander Turenko 2016-08-31 10:44:31 +03:00
commit b3a5d87a9e
11 changed files with 196 additions and 97 deletions

View file

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