From b1414520053df2d34b04005502da567b8df77c93 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Sun, 5 Feb 2023 16:31:49 -0700 Subject: [PATCH] logging_handler.py: Set StreamHandler to Standard Out --- resources/logging_handler.py | 2 +- resources/sys_patch/sys_patch.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/logging_handler.py b/resources/logging_handler.py index 6d21c7d12..89e50f42f 100644 --- a/resources/logging_handler.py +++ b/resources/logging_handler.py @@ -93,7 +93,7 @@ class InitializeLoggingSupport: level=logging.NOTSET, format="%(asctime)s - %(filename)s (%(lineno)d): %(message)s", handlers=[ - logging.StreamHandler(), + logging.StreamHandler(stream = sys.stdout), logging.FileHandler(self.log_filepath) if log_to_file is True else logging.NullHandler() ], ) diff --git a/resources/sys_patch/sys_patch.py b/resources/sys_patch/sys_patch.py index 161cee3ee..6fe251afc 100644 --- a/resources/sys_patch/sys_patch.py +++ b/resources/sys_patch/sys_patch.py @@ -666,7 +666,7 @@ class PatchSysVolume: if Path(self.constants.payload_local_binaries_root_path_zip).exists(): logging.info("- Local PatcherSupportPkg resources available, unzipping...") - print("- Unzipping binaries...") + logging.info("- Unzipping binaries...") utilities.process_status(subprocess.run(["ditto", "-V", "-x", "-k", "--sequesterRsrc", "--rsrc", self.constants.payload_local_binaries_root_path_zip, self.constants.payload_path], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)) return True