summaryrefslogtreecommitdiffstats
path: root/examples/ncclient/get.py
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2018-08-22 09:41:18 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-08-22 09:41:18 +0200
commit8b2e577ef86d99ceca59d73aa71f3d62f44b0de7 (patch)
treea0f140b0ea70a3e772e78c89e444017f266b255e /examples/ncclient/get.py
parent1d314d7e2b213fbfe0133c5b3446fdf1d23f0ac5 (diff)
examples/ncclient: set default log level to INFO
Change-Id: I959045c8d7ec16291f7144c572faea06cf1ad433 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'examples/ncclient/get.py')
-rwxr-xr-xexamples/ncclient/get.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/ncclient/get.py b/examples/ncclient/get.py
index 44a726015..999304f77 100755
--- a/examples/ncclient/get.py
+++ b/examples/ncclient/get.py
@@ -22,7 +22,7 @@ def _get(reply_filename=None, host='localhost', port=2831, username='admin', pas
with manager.connect(host=host, port=port, username=username, password=password, hostkey_verify=False) as m:
logger.info("Connected to HC")
state = m.get()
- logger.debug("Get successful:\n%s" % state)
+ logger.info("<get> successful:\n%s" % state)
if reply_filename:
with open(reply_filename, 'w') as f:
f.write(state.data_xml)
@@ -40,6 +40,6 @@ if __name__ == '__main__':
if args.verbose:
logging.basicConfig(level=logging.DEBUG)
else:
- logging.basicConfig(level=logging.WARNING)
+ logging.basicConfig(level=logging.INFO)
_get(args.reply_filename)