summaryrefslogtreecommitdiffstats
path: root/examples/ncclient/copy_config.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/copy_config.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/copy_config.py')
-rwxr-xr-xexamples/ncclient/copy_config.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/ncclient/copy_config.py b/examples/ncclient/copy_config.py
index 227acb128..f397aaa44 100755
--- a/examples/ncclient/copy_config.py
+++ b/examples/ncclient/copy_config.py
@@ -25,9 +25,9 @@ def _copy_config(config_filename, host='localhost', port=2831, username='admin',
logger.info("Connected to HC")
with open(config_filename, 'r') as f:
ret = m.copy_config(target='candidate', source=_SOURCE_TEMPLATE % f.read())
- logger.debug("CopyConfig successful:\n%s" % ret)
+ logger.info("<copy-config> successful:\n%s" % ret)
ret = m.commit()
- logger.debug("Commit successful:\n%s", ret)
+ logger.info("<commit> successful:\n%s", ret)
if __name__ == '__main__':
@@ -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)
_copy_config(args.config_filename)