John Ramey
10/20/2022, 5:05 PMget_run_logger
be called in each task/flow? i have a flow with ~20 tasks. and after upgrading to Prefect 2, I have 20 different calls to get_run_logger
β is there a better way to adhere to DRY?redsquare
10/20/2022, 5:38 PMAndrew Huang
10/20/2022, 6:35 PMNick DeCraene
10/20/2022, 6:41 PMPREFECT_LOGGING_EXTRA_LOGGERS=app
and it'll log those to the ui:
logger = logging.getLogger('app')
Jeff Hale
10/20/2022, 7:57 PMNick DeCraene
10/21/2022, 2:39 PMprefect.exceptions.MissingContextError: Logger 'job' attempted to send logs to Orion without a flow run id. The Orion log handler can only send logs within flow run contexts unless the flow run id is manually provided.
@Jeff Hale any insight here?Jeff Hale
10/21/2022, 2:48 PMZanie
10/21/2022, 2:59 PMNick DeCraene
10/21/2022, 3:33 PMZanie
10/21/2022, 3:52 PMNick DeCraene
10/21/2022, 4:07 PM