hey folks... we're trying to suppress distributed....
# ask-community
k
hey folks... we're trying to suppress distributed.worker and distributed.core from our datadog logs, and have traced them to prefect dask. can anyone share how we might suppress any dask-related logs in prefect? we tried specifying the loggers to suppress by name and it hasn't worked...
i
Hi Kevin, Here's an example of using filters in a
logging.yaml
. Also note:
```# Any item in this file can be overridden with an environment variable:
# `PREFECT_LOGGING_[PATH]_[TO]_[KEY]=VALUE````
I hope this example helps 🙂
k
hey @Islam Otmani thanks so much for your help! we actually found this and followed it to change the log level of many different things, but unfortunately it didn't work with the
distributed.worker
or
distributed.core
logs for whatever reason. any further ideas?
j
@Islam Otmani I have the same issue, was wondering if this needs to be set in the prefect server envars, as setting them in containers does not seem to work