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
changes/25/846625/1 6.1.0
James E. Blair 6 months ago
parent b2d4e3c356
commit a63f128d73
  1. 2
      nodepool/cmd/nodepoolcmd.py

@ -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'):

Loading…
Cancel
Save