https://prefect.io logo
Title
m

Mars

08/18/2022, 8:46 PM
Hi, just thought I’d say that the logging configuration in 2.0 is nice. I have a flow where I need to debug a
requests-oauthlib
connection, and now all I need to do is: 1. Copy
logging.yaml
2. Set my logger:
requests_oauthlib:
        level: DEBUG
        handlers: [console]
        propagate: no
3. Set
PREFECT_LOGGING_SETTINGS_PATH=logging.yaml
in my
.env
file. And it works!
🎉 4
k

Khuyen Tran

08/18/2022, 8:48 PM
I didn’t know you can do that. Thanks for sharing!
m

Mars

08/18/2022, 8:54 PM
The
.env
bit is custom: I’m overriding the default pipeline settings using a
.env
file and the PyCharm EnvFile plugin,
direnv
, and
environs
.