Skip to content
Permalink
Browse files

Go from INFO to NOTICE.

  • Loading branch information
da2x committed Oct 14, 2015
1 parent d1205b7 commit 4273b4ac1739d1df547ed44c49ffff7464452140
Showing with 5 additions and 4 deletions.
  1. +1 −0 CHANGES.txt
  2. +3 −3 nikola/plugins/command/check.py
  3. +1 −1 nikola/utils.py
@@ -12,6 +12,7 @@ Features
Bugfixes
--------

* Changed default log level from INFO to NOTICE (``nikola check`` is less chatty)
* Fix support for panorama images in gallery(Issue #2143)
* Support "maps.world.World" and similar charts in Pygal (Issue #2142)
* Capitalize "UTF-8" properly in locale guessing (Issue #2137)
@@ -274,7 +274,7 @@ def analyze(self, fname, find_sources=False, check_remote=False):
if self.checked_remote_targets[target] in [301, 308]:
self.logger.warn("Remote link PERMANENTLY redirected in {0}: {1} [Error {2}]".format(filename, target, self.checked_remote_targets[target]))
elif self.checked_remote_targets[target] in [302, 307]:
self.logger.info("Remote link temporarily redirected in {1}: {2} [HTTP: {3}]".format(filename, target, self.checked_remote_targets[target]))
self.logger.notice("Remote link temporarily redirected in {1}: {2} [HTTP: {3}]".format(filename, target, self.checked_remote_targets[target]))
elif self.checked_remote_targets[target] > 399:
self.logger.error("Broken link in {0}: {1} [Error {2}]".format(filename, target, self.checked_remote_targets[target]))
continue
@@ -302,7 +302,7 @@ def analyze(self, fname, find_sources=False, check_remote=False):
if redir_status_code in [301, 308]:
self.logger.warn("Remote link moved PERMANENTLY to \"{0}\" and should be updated in {1}: {2} [HTTP: {3}]".format(resp.url, filename, target, redir_status_code))
if redir_status_code in [302, 307]:
self.logger.info("Remote link temporarily redirected to \"{0}\" in {1}: {2} [HTTP: {3}]".format(resp.url, filename, target, redir_status_code))
self.logger.notice("Remote link temporarily redirected to \"{0}\" in {1}: {2} [HTTP: {3}]".format(resp.url, filename, target, redir_status_code))
self.checked_remote_targets[resp.url] = resp.status_code
self.checked_remote_targets[target] = redir_status_code
else:
@@ -343,7 +343,7 @@ def analyze(self, fname, find_sources=False, check_remote=False):

elif target_filename not in self.existing_targets:
if os.path.exists(target_filename):
self.logger.notice(u"Good link {0} => {1}".format(target, target_filename))
self.logger.info(u"Good link {0} => {1}".format(target, target_filename))
self.existing_targets.add(target_filename)
else:
rv = True
@@ -126,7 +126,7 @@ def get_logger(name, handlers):


STDERR_HANDLER = [ColorfulStderrHandler(
level=logbook.INFO if not DEBUG else logbook.DEBUG,
level=logbook.NOTICE if not DEBUG else logbook.DEBUG,
format_string=u'[{record.time:%Y-%m-%dT%H:%M:%SZ}] {record.level_name}: {record.channel}: {record.message}'
)]

0 comments on commit 4273b4a

Please sign in to comment.
You can’t perform that action at this time.