Downgrade os-traits/os-resource-classes sync log level to DEBUG

The current count of traits from the os-traits library is 120 so
the INFO log message to dump the traits that get synchronized into
the traits table on startup of the service is quite large.

This drops that logging from INFO to DEBUG and does the same for
os-resource-classes which is admittedly smaller than os-traits but
still debug information more than informational.

Change-Id: Ib78c326d79b1ad2393c42702f9081a7593097e3e
Related-Bug: #1813147
This commit is contained in:
Matt Riedemann
2019-02-19 10:31:04 -05:00
parent 530be3d398
commit a3d0ffb743

View File

@ -117,8 +117,8 @@ def _trait_sync(ctx):
if batch_args:
try:
ctx.session.execute(ins, batch_args)
LOG.info("Synced traits from os_traits into API DB: %s",
need_sync)
LOG.debug("Synced traits from os_traits into API DB: %s",
need_sync)
except db_exc.DBDuplicateEntry:
pass # some other process sync'd, just ignore
@ -171,8 +171,8 @@ def _resource_classes_sync(ctx):
conn.execute("SET SESSION SQL_MODE='NO_AUTO_VALUE_ON_ZERO'")
try:
ctx.session.execute(ins, batch_args)
LOG.info("Synced resource_classes from os_resource_classes: %s",
batch_args)
LOG.debug("Synced resource_classes from os_resource_classes: %s",
batch_args)
except db_exc.DBDuplicateEntry:
pass # some other process sync'd, just ignore