From 64645cdf1f47edad0135679e53d17c10a43960fb Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Sat, 4 Jan 2020 18:06:57 -0700 Subject: [PATCH] Expanded logging (slightly) --- scripts/wk/hw/ddrescue.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/wk/hw/ddrescue.py b/scripts/wk/hw/ddrescue.py index 5300a29a..90e5075b 100644 --- a/scripts/wk/hw/ddrescue.py +++ b/scripts/wk/hw/ddrescue.py @@ -770,9 +770,11 @@ class State(): # Skip real format for dry runs if dry_run: + LOG.info('Dry run, refusing to format destination') return # Format disk + LOG.warning('Formatting destination: %s', self.destination.path) with open(script_path, 'r') as _f: proc = exe.run_program( cmd=['sudo', 'sfdisk', self.destination.path], @@ -790,6 +792,9 @@ class State(): def retry_all_passes(self): """Prep block_pairs for a retry recovery attempt.""" bad_statuses = ('*', '/', '-') + LOG.warning('Updating block_pairs for retry') + + # Update all block_pairs for pair in self.block_pairs: map_data = []