From: Vishvananda Ishaya Date: Thu, 20 Sep 2012 16:52:51 +0000 (+0000) Subject: Stop double logging to the console X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=a1cbbe2e9e5d7a5ec55ec1197571cd68fcdbad15;p=openstack-build%2Fcinder-build.git Stop double logging to the console The code in nova for logging added an extra root handler to be able to log messages to the console during log setup. This handler was removed in the setup method. The common setup method no longer removes this handler, so don't create it. Note that there may be a small period before the logging setup is finished where messages will not appear. Fixes bug 1053512 Change-Id: I559cca8ffc2a33beff22025e42a9713487245980 --- diff --git a/cinder/__init__.py b/cinder/__init__.py index 238c2812e..f8db8e875 100644 --- a/cinder/__init__.py +++ b/cinder/__init__.py @@ -32,11 +32,6 @@ """ import gettext -import logging gettext.install('cinder', unicode=1) -# NOTE(jkoelker) This configures the root logger if it is not already -# configured so messages from logging setup can be written -# to the console -logging.basicConfig(format='%(message)s')