graphite-api icon indicating copy to clipboard operation
graphite-api copied to clipboard

Disable debug logging when running via docker

Open lukyanov opened this issue 8 years ago • 2 comments

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"}

lukyanov avatar Mar 30 '17 13:03 lukyanov

up!

lukyanov avatar Feb 11 '19 09:02 lukyanov

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

westphaldp avatar Jan 08 '21 19:01 westphaldp