From 2a082676e74d0ac7f208c5c03002b329729e2091 Mon Sep 17 00:00:00 2001 From: Duncan Thomas Date: Thu, 7 Jul 2016 07:44:50 +0100 Subject: [PATCH] Reduce logging level of API validation messages. cinder.utils.check_metadata_properties logs validation failures at warning level, which it really shouldn't - API validation is not something the admin really cares about. This patch changes them to debug. Closes-Bug: #1599732 Change-Id: I33ea67e32a007ff1a3f0b8111b16b1e18cd207e6 --- cinder/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cinder/utils.py b/cinder/utils.py index 8e8bada962a..2e6a1e76c9e 100644 --- a/cinder/utils.py +++ b/cinder/utils.py @@ -169,17 +169,17 @@ def check_metadata_properties(metadata=None): for k, v in metadata.items(): if len(k) == 0: msg = _("Metadata property key blank.") - LOG.warning(msg) + LOG.debug(msg) raise exception.InvalidVolumeMetadata(reason=msg) if len(k) > 255: msg = _("Metadata property key %s greater than 255 " "characters.") % k - LOG.warning(msg) + LOG.debug(msg) raise exception.InvalidVolumeMetadataSize(reason=msg) if len(v) > 255: msg = _("Metadata property key %s value greater than " "255 characters.") % k - LOG.warning(msg) + LOG.debug(msg) raise exception.InvalidVolumeMetadataSize(reason=msg)