Nova loggers
Hi everyone, I'm using the Havana release and I can see from the $PYTHONDIR/nova/openstack/common/log.py that the default loggers level are:
- 'amqplib=WARN',
- 'sqlalchemy=WARN',
- 'boto=WARN',
- 'suds=INFO',
- 'keystone=INFO',
- 'eventlet.wsgi.server=WARN'
From the web page of the Juno release, I can see other default logger levels:
- amqp=WARN,
- amqplib=WARN,
- boto=WARN,
- qpid=WARN,
- sqlalchemy=WARN,
- suds=INFO,
- oslo.messaging=INFO,
- iso8601=WARN,
- requests.packages.urllib3.connectionpool=WARN,
- urllib3.connectionpool=WARN, websocket=WARN,
- keystonemiddleware=WARN,
- routes.middleware=WARN,
- stevedore=WARN
So, the possible loggers are the ones that are listed in the configuration files, or there are other loggers that are not listed there? How can I find them?
I ask this, because I set debug = True and in the log files I can see that the messages come from modules like nova.api.openstack.wsgi, qpid.messaging, nova.osapi_compute.wsgi.server, nova.openstack.common.rpc.amqp etc..
I don't unsertand which logger print what type of message. For example, to remove all the debug messages that comes from the module nova.openstack.common.rpc.amqp, which logger level do I need to change? ampq or ampqlib? And if I want the nova.api.openstack.wsgi but not nova.osapi_compute.wsgi.server? It's not clear hot to control them and where they come from.
My problem is that I need to find several information by the logs, so I set the option debug=True but now I receive too much prints in the log files. The log files are constantly growing. I need to select only some of them. For instance I need to suppress the messages that come from qpid.messaging.io..., nova.openstack.common.rpc..., nova.osapi_compute.wsgi.server, etc..
but I need to store the debug messages that come from nova.api.openstack.wsgi, nova.compute.api,nova.scheduler.filter_scheduler, nova.virt, nova.openstack.common.processutils, etc..
So my questions are:
- Are there more loggers than the default list includes?
- For every logger that you know, what messages and from what modules does it print?
- If I set the debug=True, are all the loggers level = debug automatically, or the log levels specified in the default_log_levels configuration option (in nova.conf) are not changed?
For more information about my doubts, please, ask me. Thank you a lot!