Cormac
10/20/2023, 3:25 PM@flow(log_prints=True)
Nate
10/20/2023, 4:03 PMlog_prints
literally patches `builtin.print` with get_run_logger
, so if you're using logging
and not print
then log_prints
is probably not what you're looking forCormac
10/20/2023, 9:10 PMget_run_logger()
?Nate
10/20/2023, 9:15 PMprint
directly if you have log_prints=True
on a given task/flow (or parent flow, the setting is inherited and you can opt out as described here)
then that will be effectively the same as using get_run_logger
(sent to the API)
if you don't prefer using print
then you might not use log_prints=True
, get_run_logger
offers more control bc you can use info
, debug
etc like a normal loggerCormac
10/20/2023, 10:10 PMget_run_logger()
is exactly the thing I need. it's all reporting a treat now.