Skip to content

Commit 7f08e6c

Browse files
authored
fix subprocess.check_output bug (#1409)
* fix_check_output_bug * change_log_info * recover_feature
1 parent 0f3abfe commit 7f08e6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qlib/workflow/recorder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def _log_uncommitted_code(self):
371371
out = subprocess.check_output(cmd, shell=True)
372372
self.client.log_text(self.id, out.decode(), fname) # this behaves same as above
373373
except subprocess.CalledProcessError:
374-
logger.info(f"Fail to log the uncommitted code of $CWD when run `{cmd}`")
374+
logger.info(f"Fail to log the uncommitted code of $CWD({os.getcwd()}) when run {cmd}.")
375375

376376
def end_run(self, status: str = Recorder.STATUS_S):
377377
assert status in [

0 commit comments

Comments
 (0)