# HG changeset patch # User Ludovic Chabant # Date 1422754561 28800 # Node ID 10f24c62b05b8a341bd151fcb0ff54557199992b # Parent 1f4c3dae1fe88e38df5382e891a5dad796199a70 showrecord: Show the overall status (success/failed) of the bake. diff -r 1f4c3dae1fe8 -r 10f24c62b05b piecrust/commands/builtin/baking.py --- a/piecrust/commands/builtin/baking.py Sat Jan 31 17:35:36 2015 -0800 +++ b/piecrust/commands/builtin/baking.py Sat Jan 31 17:36:01 2015 -0800 @@ -108,10 +108,15 @@ raise Exception("No record has been created for this output path. " "Did you bake there yet?") + # Show the bake record. record = BakeRecord.load(record_cache.getCachePath(record_name)) logging.info("Bake record for: %s" % record.out_dir) logging.info("Last baked: %s" % datetime.datetime.fromtimestamp(record.bake_time)) + if record.success: + logging.info("Status: success") + else: + logging.error("Status: failed") logging.info("Entries:") for entry in record.entries: if pattern: @@ -135,12 +140,17 @@ if not record_cache.has(record_name): return + # Show the pipeline record. record = ProcessorPipelineRecord.load( record_cache.getCachePath(record_name)) logging.info("") logging.info("Processing record for: %s" % record.out_dir) logging.info("Last baked: %s" % datetime.datetime.fromtimestamp(record.process_time)) + if record.success: + logging.info("Status: success") + else: + logging.error("Status: failed") logging.info("Entries:") for entry in record.entries: if pattern: