graphite-api
graphite-api copied to clipboard
Disable debug logging when running via docker
How do I disable debug logs? I'm using https://hub.docker.com/r/brutasse/graphite-api/ to run graphite-api.
There is a log file on the host machine that flooding with messages like this:
{"log":"{\"metric\": \"bot.production.srv0.meter.site.recipe.parser_failed.one\", \"host\": \"('192.168.210.54', None)\", \"event\": \"carbonlink request\"}\n","stream":"stderr","time":"2017-03-30T13:44:10.227889925Z"}
up!
I don't see it in the documentation, but had a similar question. The only way I've found is to configure logging in graphite-api.yaml.
e.g.
logging:
loggers:
graphite_api:
level: INFO
Inspiration: https://github.com/brutasse/graphite-api/pull/73#issuecomment-78386381