Add openstacksdk logging to nodepool builder
Nodepool now uses openstacksdk in place of shade. Add a logger for that. Also, this makes the builder logging config look like the one in system-config which is, accidentally, the actual logging config being used right now. I'm going to put up another change to use the logging config in this repo, which is the correct thing to do for v3 of nodepool. Change-Id: I5e6ab0a34e9e5df0ee152b33b01e5266691e6fc6
This commit is contained in:
parent
845ebb93e3
commit
fe2f7811f3
@ -1,8 +1,8 @@
|
||||
[loggers]
|
||||
keys=root,nodepool,requests,image,kazoo
|
||||
keys=root,nodepool,requests,openstack,kazoo
|
||||
|
||||
[handlers]
|
||||
keys=console,debug,normal,image
|
||||
keys=console,debug,normal
|
||||
|
||||
[formatters]
|
||||
keys=simple
|
||||
@ -16,21 +16,21 @@ level=WARNING
|
||||
handlers=debug,normal
|
||||
qualname=requests
|
||||
|
||||
[logger_openstack]
|
||||
level=WARNING
|
||||
handlers=debug,normal
|
||||
qualname=openstack
|
||||
|
||||
[logger_nodepool]
|
||||
level=DEBUG
|
||||
handlers=debug,normal
|
||||
qualname=nodepool
|
||||
|
||||
[logger_image]
|
||||
level=INFO
|
||||
handlers=image
|
||||
qualname=nodepool.image.build
|
||||
propagate=0
|
||||
|
||||
[logger_kazoo]
|
||||
level=INFO
|
||||
handlers=debug,normal
|
||||
qualname=kazoo
|
||||
propagate=0
|
||||
|
||||
[handler_console]
|
||||
level=WARNING
|
||||
@ -50,12 +50,6 @@ class=logging.handlers.TimedRotatingFileHandler
|
||||
formatter=simple
|
||||
args=('/var/log/nodepool/nodepool-builder.log', 'H', 8, 30,)
|
||||
|
||||
[handler_image]
|
||||
level=INFO
|
||||
class=logging.handlers.TimedRotatingFileHandler
|
||||
formatter=simple
|
||||
args=('<%= @image_log_document_root %>/image.log', 'H', 8, 30,)
|
||||
|
||||
[formatter_simple]
|
||||
format=%(asctime)s %(levelname)s %(name)s: %(message)s
|
||||
datefmt=
|
||||
|
Loading…
x
Reference in New Issue
Block a user