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:
James E. Blair 2022-06-20 07:07:01 -07:00
parent b2d4e3c356
commit a63f128d73
1 changed files with 2 additions and 0 deletions

View File

@ -182,6 +182,8 @@ class NodePoolCmd(NodepoolApp):
l = logging.getLogger('kazoo')
l.setLevel(logging.WARNING)
l = logging.getLogger('nodepool.ComponentRegistry')
l.setLevel(logging.WARNING)
def list(self, node_id=None, detail=False):
if hasattr(self.args, 'detail'):