No handlers could be found for logger "cache"

Asked by Frank Hoffs├╝mmer on 2011-05-31

The error log of the webapp contains 1000s of lines saying

No handlers could be found for logger "cache"

what's the problem, and how can I fix it?

Question information

English Edit question
Graphite Edit question
No assignee Edit question
Last query:
Last reply:
Nicholas Leskiw (nleskiw) said : #1

I'm running trunk, and I'm not seeing that error in my webapp logs.

1. Can you give the exact log file in which you're seeing that error
2. Let us know if you're using apache+mod_python, apache+mod_wsgi or ""
3. Paste in a few of the log lines (or is that the exact log line?)
4. What version of Graphite are you running.


chrismd (chrismd) said : #2

Actually I think this is just due to a really stupid implementation of webapp/graphite/ Sorry about that :). Nick you probably have LOG_CACHE_PERFORMANCE = True in your which avoids this problem. Since it is False by default the log.cache handler isn't configured in, resulting in a bunch of stderr garbage. I've been too lazy to fix this because I always use LOG_CACHE_PERFORMANCE = True, but it is a pretty lousy default behavior so I'll make a bug for it.

Can you help with this problem?

Provide an answer of your own, or ask Frank Hoffs├╝mmer for more information if necessary.

To post a message you must log in.