comparison piecrust/chefutil.py @ 39:2f717f961996

Better error reporting and cache validation. Fix the processor pipeline in the preview server. Move the `pages` route to first position.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 21 Aug 2014 22:28:22 -0700
parents f485ba500df3
children 8703be118430
comparison
equal deleted inserted replaced
38:091f99bfbe44 39:2f717f961996
7 time_str = '%8.1f ms' % ((end_time - start_time) * 1000.0) 7 time_str = '%8.1f ms' % ((end_time - start_time) * 1000.0)
8 if colored: 8 if colored:
9 return '[%s%s%s] %s' % (Fore.GREEN, time_str, Fore.RESET, message) 9 return '[%s%s%s] %s' % (Fore.GREEN, time_str, Fore.RESET, message)
10 return '[%s] %s' % (time_str, message) 10 return '[%s] %s' % (time_str, message)
11 11
12
13 def log_friendly_exception(logger, ex):
14 indent = ''
15 while ex:
16 logger.error('%s%s' % (indent, str(ex)))
17 indent += ' '
18 ex = ex.__cause__
19