mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Don't preformat log messages
as per review notes
This commit is contained in:
parent
7eb730af78
commit
bc21922cf2
1 changed files with 2 additions and 2 deletions
|
|
@ -222,7 +222,7 @@ class Pelican:
|
||||||
|
|
||||||
writer = writers[0]
|
writer = writers[0]
|
||||||
|
|
||||||
logger.debug("Found writer: %s (%s)" % (writer.__name__, writer.__module__))
|
logger.debug("Found writer: %s (%s)", writer.__name__, writer.__module__)
|
||||||
return writer(self.output_path, settings=self.settings)
|
return writer(self.output_path, settings=self.settings)
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -536,7 +536,7 @@ def main(argv=None):
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
logger.warning('Keyboard interrupt received. Exiting.')
|
logger.warning('Keyboard interrupt received. Exiting.')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.critical("%s: %s" % (e.__class__.__name__, e))
|
logger.critical("%s: %s", e.__class__.__name__, e)
|
||||||
|
|
||||||
if args.verbosity == logging.DEBUG:
|
if args.verbosity == logging.DEBUG:
|
||||||
console.print_exception()
|
console.print_exception()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue