Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Set reST logging level to WARNING to limit noise (#3169)
* Set reST logging level to WARNING to limit noise

Signed-off-by: Chris Warrick <kwpolska@gmail.com>

* Fix spelling of “debug”

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska authored and ralsina committed Sep 19, 2018
1 parent 418a458 commit 1caf3a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -7,6 +7,7 @@ Features
Bugfixes
--------

* Set logging level for reST to warning in order to limit noise
* Fix docinfo removal for sites that use reST docinfo metadata
(Issue #3167)

Expand Down
3 changes: 3 additions & 0 deletions nikola/plugins/compile/rest/__init__.py
Expand Up @@ -189,6 +189,9 @@ def set_site(self, site):
self.config_dependencies.append(plugin_info.name)
plugin_info.plugin_object.short_help = plugin_info.description

if not site.debug:
self.logger.level = logbook.base.WARNING


def get_observer(settings):
"""Return an observer for the docutils Reporter."""
Expand Down

0 comments on commit 1caf3a9

Please sign in to comment.