Hi, just thought I’d say that the logging configur...
# prefect-community
m
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:
Copy code
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
I didn’t know you can do that. Thanks for sharing!
m
The
.env
bit is custom: I’m overriding the default pipeline settings using a
.env
file and the PyCharm EnvFile plugin,
direnv
, and
environs
.