From 9ef3fa8201d8c6f5b8860bc2c4f5967eb130402f Mon Sep 17 00:00:00 2001 From: Assaf Muller Date: Thu, 9 Apr 2015 11:40:55 -0400 Subject: [PATCH] Remove amqp driver 'unpacked content' logging Different OpenStack processes log that line when idle, but it doesn't offer actionable information to developers or users. Ideally process logs should be silent when idle, even in debug mode. Here's a sample: http://paste.openstack.org/show/201371/ Change-Id: Ib4f63d590a6f5ed295fae12dac12897007b12879 --- oslo_messaging/_drivers/amqp.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/oslo_messaging/_drivers/amqp.py b/oslo_messaging/_drivers/amqp.py index 5e2d421bb..f2677c262 100644 --- a/oslo_messaging/_drivers/amqp.py +++ b/oslo_messaging/_drivers/amqp.py @@ -28,7 +28,6 @@ import logging import uuid from oslo_config import cfg -from oslo_utils import strutils import six from oslo_messaging._drivers import common as rpc_common @@ -204,10 +203,7 @@ def unpack_context(conf, msg): context_dict['msg_id'] = msg.pop('_msg_id', None) context_dict['reply_q'] = msg.pop('_reply_q', None) context_dict['conf'] = conf - ctx = RpcContext.from_dict(context_dict) - LOG.debug(u'unpacked context: %s', - strutils.mask_password(six.text_type(ctx.to_dict()))) - return ctx + return RpcContext.from_dict(context_dict) def pack_context(msg, context):