Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to set persister log level #513

Open
like-inspur opened this issue Apr 15, 2019 · 2 comments
Open

how to set persister log level #513

like-inspur opened this issue Apr 15, 2019 · 2 comments

Comments

@like-inspur
Copy link

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:
- env:
- name: DEBUG
value: "false"
- name: VERBOSE
value: "false"

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
Copy link
Member

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

@matrixik
Copy link
Member

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/ )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants