Alex Shea
04/10/2023, 2:02 PMJeff Hale
04/10/2023, 3:00 PMCraig Harshbarger
04/10/2023, 4:01 PMAlex Shea
04/12/2023, 5:17 PMthe log message is generated by this summarized code
logger = prefect.get_run_logger()
output = subprocess.popen(cmd, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
while output.poll() is None:
line = output.stdout.readline().decode("utf-8", "ignore").strip()
//code to set error_condition: bool
if error_condition:
logger.error(line)
error:
<http://logger.info|logger.info>(line)
(I will also open an issue in the github repo and link it back in this thread)Craig Harshbarger
04/12/2023, 10:31 PMAlex Shea
04/12/2023, 10:32 PMCraig Harshbarger
04/12/2023, 11:02 PMAlex Shea
04/13/2023, 10:13 PM