From a3d0ffb743ba06bfc3611cf0d9dda07abb921d87 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Tue, 19 Feb 2019 10:31:04 -0500 Subject: [PATCH] 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 --- placement/objects/resource_provider.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/placement/objects/resource_provider.py b/placement/objects/resource_provider.py index 83c50880a..a27be1935 100644 --- a/placement/objects/resource_provider.py +++ b/placement/objects/resource_provider.py @@ -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