https://prefect.io logo
#prefect-community
Title
# prefect-community
c

Carlo

10/27/2022, 7:15 PM
"attempted to send logs to Orion without a flow run id": We are running into an issue where our flow imports libraries that do some logging on import. As outlined here: https://linen.prefect.io/t/3323130/must-get-run-logger-be-called-in-each-task-flow-i-have-a-flo Is there a known work around? We tried to disable logging & re-enable logging post imports, but that didn't help.
1
This was actually a
warning
from pysftp. We got around this by wrapping the offending code w/
warnings.filterwarnings('ignore')
warnings.filterwarnings('default')
🙌 1
If it's actual logging happening in the flow definition on import, we ended up wrapping the import w/
Copy code
logging.disable(logging.CRITICAL)
logging.disable(logging.NOTSET)
5 Views