monasca / monasca-docker

Docker files and setup for Monasca
Apache License 2.0
24 stars 47 forks source link

how to set persister log level #513

Open like-inspur opened 5 years ago

like-inspur commented 5 years ago

I want to set warn log level for monasca persister. So I set DEBUG and VERBOSE both are "false", but monasca persister pod still output INFO log. The config and output are like this: spec: containers:

2019-04-15 09:30:36.828 29 INFO monasca_persister.repositories.cassandra.metric_batch [-] metric dimension batches : Size: 1; Tokens: |<Murmur3Token: 2546015048625515015>: 10| 2019-04-15 09:30:36.828 29 INFO monasca_persister.repositories.cassandra.metric_batch [-] measurement batches : Size: 6; Replicas: |158.158.111.156,158.158.76.158,158.158.68.144: 30,6|158.158.111.156,158.158.68.144,158.158.76.158: 28|158.158.76.158,158.158.68.144,158.158.111.156: 30,15|158.158.76.158,158.158.111.156,158.158.68.144: 29|158.158.68.144,158.158.76.158,158.158.111.156: 22|158.158.68.144,158.158.111.156,158.158.76.158: 30,8|

matrixik commented 5 years ago

Hi, hmm, looks like it was somehow overlooked. Sorry about this, it's need to be improved.

matrixik commented 5 years ago

I created change to monasca-persister to allow configuring log levels on https://review.openstack.org/#/c/652992 When it's merged it will be possible to use them in docker images build from monasca-persister repository. This images are still not pushed to docker hub (it's in progress https://review.openstack.org/#/c/652650/ )