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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user