stop adding log handler

A StreamHandler was being setup that dumped logs to the console
regardless of the user's wishes. This removes that StreamHandler
setup so that the user can control the logging themselves.

Change-Id: I02756539a7c094153b9ec29a0ff2fecaabd44f71
Closes-Bug: #1647846
This commit is contained in:
Matthew Edmonds
2016-12-06 15:59:40 -05:00
parent 0405d398d5
commit 4b3ac9405e

View File

@@ -24,10 +24,7 @@ from cinderclient import exceptions
from cinderclient import utils
from cinderclient._i18n import _
logging.basicConfig()
LOG = logging.getLogger(__name__)
if not LOG.handlers:
LOG.addHandler(logging.StreamHandler())
# key is a deprecated version and value is an alternative version.