Suppress component registry logging in command
Users of the "nodepool" command don't need to see the component registry logs at info level (which output at least a line for each connected component). Set the minimum level to warning to avoid that. The component registry may still be useful for command-line use in the future, so we leave it in place rather than disabling it entirely. Change-Id: I8c0937d7304ddc536773cf74fc40bbf6e79918d4
This commit is contained in:
parent
b2d4e3c356
commit
a63f128d73
|
@ -182,6 +182,8 @@ class NodePoolCmd(NodepoolApp):
|
||||||
|
|
||||||
l = logging.getLogger('kazoo')
|
l = logging.getLogger('kazoo')
|
||||||
l.setLevel(logging.WARNING)
|
l.setLevel(logging.WARNING)
|
||||||
|
l = logging.getLogger('nodepool.ComponentRegistry')
|
||||||
|
l.setLevel(logging.WARNING)
|
||||||
|
|
||||||
def list(self, node_id=None, detail=False):
|
def list(self, node_id=None, detail=False):
|
||||||
if hasattr(self.args, 'detail'):
|
if hasattr(self.args, 'detail'):
|
||||||
|
|
Loading…
Reference in New Issue