forked from github/pelican
Merge pull request #2304 from peterdesmet/patch-1
Indicate that logging needs to be imported for LOG_FILTER
This commit is contained in:
commit
d973a7d097
1 changed files with 5 additions and 3 deletions
|
|
@ -1162,14 +1162,16 @@ be filtered out.
|
||||||
|
|
||||||
For example::
|
For example::
|
||||||
|
|
||||||
[(logging.WARN, 'TAG_SAVE_AS is set to False')]
|
import logging
|
||||||
|
LOG_FILTER = [(logging.WARN, 'TAG_SAVE_AS is set to False')]
|
||||||
|
|
||||||
It is possible to filter out messages by a template. Check out source code to
|
It is possible to filter out messages by a template. Check out source code to
|
||||||
obtain a template.
|
obtain a template.
|
||||||
|
|
||||||
For example::
|
For example::
|
||||||
|
|
||||||
[(logging.WARN, 'Empty alt attribute for image %s in %s')]
|
import logging
|
||||||
|
LOG_FILTER = [(logging.WARN, 'Empty alt attribute for image %s in %s')]
|
||||||
|
|
||||||
.. Warning::
|
.. Warning::
|
||||||
Silencing messages by templates is a dangerous feature. It is possible to
|
Silencing messages by templates is a dangerous feature. It is possible to
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue