From 29972e5066e9c653e2e217109c850375f17095fa Mon Sep 17 00:00:00 2001 From: James Page Date: Tue, 3 Jan 2017 10:41:31 +0000 Subject: [PATCH] Drop missing configuration file log to debug Missing configuration files are a 'normal' thing to expect, so don't need to be logged as warning messages. Change-Id: I2413969d48c3785db497549465564a4d493a6b26 --- snap_openstack/base.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snap_openstack/base.py b/snap_openstack/base.py index db6c95f..cbd24c0 100644 --- a/snap_openstack/base.py +++ b/snap_openstack/base.py @@ -132,16 +132,16 @@ class OpenStackSnap(object): if os.path.exists(cfile): cmd.append('--config-file={}'.format(cfile)) else: - LOG.warning('Configuration file {} not found' - ', skipping'.format(cfile)) + LOG.debug('Configuration file {} not found' + ', skipping'.format(cfile)) for cdir in entry_point.get('config-dirs', []): cdir = cdir.format(**self.snap_env) if os.path.exists(cdir): cmd.append('--config-dir={}'.format(cdir)) else: - LOG.warning('Configuration directory {} not found' - ', skipping'.format(cdir)) + LOG.debug('Configuration directory {} not found' + ', skipping'.format(cdir)) log_file = entry_point.get('log-file') if log_file: