From c161ebac2a23fa18f0f6a97fd43f5d9607931969 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Mon, 13 Jan 2020 22:11:07 -0700 Subject: [PATCH] Save ddrescue results to log at exit * Instead of printing them since it should be run in tmux * And as such the results would be obscured from the user anyway --- scripts/wk/hw/ddrescue.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/wk/hw/ddrescue.py b/scripts/wk/hw/ddrescue.py index 36ebce2b..f9b0d023 100644 --- a/scripts/wk/hw/ddrescue.py +++ b/scripts/wk/hw/ddrescue.py @@ -1697,8 +1697,9 @@ def main(): break # Save results to log - std.print_standard(' ') - std.print_report(state.generate_report()) + LOG.info('') + for line in state.generate_report(): + LOG.info(' %s', std.strip_colors(line)) def mount_raw_image(path):