Skip to content
Permalink
Browse files
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 1caf3a9c01f60374e32efc26e5bba338ca844ee8
Showing with 4 additions and 0 deletions.
  1. +1 −0 CHANGES.txt
  2. +3 −0 nikola/plugins/compile/rest/__init__.py
@@ -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)

@@ -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."""

0 comments on commit 1caf3a9

Please sign in to comment.