Skip to content

Commit

Permalink
Reduce logging verbosity for paramiko client
Browse files Browse the repository at this point in the history
  • Loading branch information
Tejeda, Engelbert committed Oct 14, 2019
1 parent b493288 commit 126aad9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ansible_taskrunner/libs/sshutil/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@
print('pip install -U -r requirements.txt')
sys.exit(1)

# Make paramiko less verbose
# Only show us warnings if we're not debugging
if '--debug run' not in ' '.join(sys.argv):
paramiko_logger = logging.getLogger('paramiko')
paramiko_logger.setLevel(30)

class SSHUtilClient:

def __init__(self, settings):
Expand Down

0 comments on commit 126aad9

Please sign in to comment.