Set ssh logging level appropriately

This commit is contained in:
Ciaran Gultnieks 2014-02-25 12:46:32 +00:00
parent a6c1b33a8c
commit 8d95091f4d

View file

@ -82,6 +82,10 @@ def build_server(app, thisbuild, vcs, build_dir, output_dir, force):
"""Do a build on the build server."""
import ssh
if options.debug:
logging.getLogger("ssh").setLevel(logging.DEBUG)
else:
logging.getLogger("ssh").setLevel(logging.WARN)
# Reset existing builder machine to a clean state if possible.
vm_ok = False