Hello team, I am trying to understand why none of ...
# ask-community
k
Hello team, I am trying to understand why none of our logs are making it to the cloud interface. We are using the PREFECT__LOGGING__EXTRA_LOGGERS setting and I am currently running the agent locally in Pycharm to debug. I see the loggers being configured with the StreamHandler & CloudHandler and when I log from my code the lines locally look like they have the right format applied. However I don't see Prefect's or my own logs in the cloud interface. Any ideas?
This is using prefect==0.9.7
Just found this in the code... Could be what I am missing?
Ok so that does seem to do the job which is great. One question though, the cloud handler's log level is hard coded to DEBUG after the cloud handler is created which feels like a bad commit.
j
Yeah I think this should be configurable! Would you mind opening an issue for this?
k
@josh it does use the configuration initially, then overrides it with a hardcoded DEBUG, someone must have been testing locally 🙂
Sure I'll open an issue
j
I believe the
DEBUG
may have been added with the intention to send everything to Cloud to which it could then be filtered by log level on the cloud side. But I do agree that we should allow for this option to be configurable because there are definitely some external_loggers which log a ton of debug logs
a
@josh - another thing that would be really helpful is to document the
PREFECT__LOGGING__LOG_TO_CLOUD
param.
we were wondering why we weren’t seeing the logs come up after our previous discussion about the log handler, and eventually found this (which appears to do what we want)
j
Yeah we should add a note about that! Can you open an issue for documentation here?
a
sure - on the main
core
repo?
j
Yep!
a
j
Thanks @Arlo Bryer!