diff --git a/tests/test_check.py b/tests/test_check.py index 6bc3910f..1a972398 100644 --- a/tests/test_check.py +++ b/tests/test_check.py @@ -189,7 +189,7 @@ def testCheckKeepTars(self): ) self.assertEqualOrStop( output + err, - "INFO: Opening tar archive {}/000000.tar\nINFO: Checking file1.txt\nINFO: Checking file2.txt\nINFO: No failures detected when checking the files.\n".format( + 'INFO: Opening tar archive {}/000000.tar\nINFO: Checking file1.txt\nINFO: Checking file2.txt\nINFO: No failures detected when checking the files. If you have a log file, run "grep -i Exception " to double check.\n'.format( self.cache ), ) diff --git a/zstash/extract.py b/zstash/extract.py index 5382609b..9918bf4b 100644 --- a/zstash/extract.py +++ b/zstash/extract.py @@ -57,7 +57,11 @@ def extract(keep_files: bool = True): logger.error(tar) else: verb: str = "extracting" if keep_files else "checking" - logger.info("No failures detected when {} the files.".format(verb)) + logger.info( + 'No failures detected when {} the files. If you have a log file, run "grep -i Exception " to double check.'.format( + verb + ) + ) def setup_extract() -> Tuple[argparse.Namespace, str]: @@ -352,7 +356,9 @@ def multiprocess_extract( monitor, tars_for_this_worker, failure_queue ) process: multiprocessing.Process = multiprocessing.Process( - target=extractFiles, args=(matches, keep_files, keep_tars, cache, worker) + target=extractFiles, + args=(matches, keep_files, keep_tars, cache, worker), + daemon=True, ) process.start() processes.append(process)