Lower local collector log level

The local collector was added as the default but we're not properly
configuring it anywhere so this results in two log messages being
printed. Let's lower one of the messages to info and leave the one about
non-existing directory as a warning to indicate possible
mis-configuration.

Change-Id: I52ead32cce1eaf5f3816507e8e62b270f1a1a1cd
Closes-Bug: #1691003
This commit is contained in:
Alex Schultz 2018-01-02 08:14:28 -07:00
parent fd530b4294
commit 69f0af9ccc

View File

@ -89,7 +89,7 @@ class Collector(object):
basename = os.path.basename(data_file)
final_content.append((basename, value))
if not final_content:
logger.warn('No local metadata found (%s)' %
logger.info('No local metadata found (%s)' %
cfg.CONF.local.path)
# Now sort specifically by C locale