Merge pull request #47407 from terminalmage/update-interval-log

Reduce severity of missing X_update_interval key
This commit is contained in:
Nicole Thomas 2018-05-01 11:18:45 -04:00 committed by GitHub
commit 7e0cdd6145
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -407,10 +407,10 @@ class FileserverUpdate(salt.utils.process.SignalHandlingMultiprocessingProcess):
interval = self.opts[interval_key]
except KeyError:
interval = DEFAULT_INTERVAL
log.error(
'%s key missing from master configuration. This is '
'a bug, please report it. Falling back to default '
'interval of %d seconds', interval_key, interval
log.warning(
'%s key missing from configuration. Falling back to '
'default interval of %d seconds',
interval_key, interval
)
self.buckets.setdefault(
interval, OrderedDict())[(backend, update_func)] = None