From 7f08e6c7b34d746e6e7f00578a041672e45764ee Mon Sep 17 00:00:00 2001 From: Linlang <30293408+SunsetWolf@users.noreply.github.com> Date: Fri, 6 Jan 2023 21:44:23 +0800 Subject: [PATCH] fix subprocess.check_output bug (#1409) * fix_check_output_bug * change_log_info * recover_feature --- qlib/workflow/recorder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qlib/workflow/recorder.py b/qlib/workflow/recorder.py index 4d0fd8a23..4502a6c04 100644 --- a/qlib/workflow/recorder.py +++ b/qlib/workflow/recorder.py @@ -371,7 +371,7 @@ class MLflowRecorder(Recorder): out = subprocess.check_output(cmd, shell=True) self.client.log_text(self.id, out.decode(), fname) # this behaves same as above except subprocess.CalledProcessError: - logger.info(f"Fail to log the uncommitted code of $CWD when run `{cmd}`") + logger.info(f"Fail to log the uncommitted code of $CWD({os.getcwd()}) when run {cmd}.") def end_run(self, status: str = Recorder.STATUS_S): assert status in [