python-fuelclient configured with silent logging

Bug #1592445 reported by Alexander Dobdin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Roman Prykhodchenko

Bug Description

The following code adds global NullHandler for each import of fuelclient:

logger.addHandler(NullHandler())

Steps to reproduce:
#!/usr/bin/env python

import logging
from fuelclient.client import Client

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
logger.info('test')
c = Client()

Expected results:
 print in stderr: test
Actual result:
 stderr is empty

Changed in fuel:
assignee: nobody → Roman Prykhodchenko (romcheg)
status: New → In Progress
Revision history for this message
Roman Prykhodchenko (romcheg) wrote :

Marking this as High because it breaks loggers, if python-fuelclient is used as a library.

Changed in fuel:
importance: Undecided → High
milestone: none → 10.0
summary: - fuelclient has configured with silent logging
+ python-fuelclient has configured with silent logging
summary: - python-fuelclient has configured with silent logging
+ python-fuelclient configured with silent logging
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-fuelclient (master)

Reviewed: https://review.openstack.org/329476
Committed: https://git.openstack.org/cgit/openstack/python-fuelclient/commit/?id=5c9e2e57f3f9aa0033341e64f075f41043cdd858
Submitter: Jenkins
Branch: master

commit 5c9e2e57f3f9aa0033341e64f075f41043cdd858
Author: Roman Prykhodchenko <email address hidden>
Date: Tue Jun 14 16:22:57 2016 +0200

    Remove NullHandler

    Remove NullHandler that used to be used for preventing
    keystone from logging anything. Using Nullhandler is not
    appropriate for python-fuelclient as for library.

    Closes-bug: #1592445
    Change-Id: Ia77f7dbf32b7c39872dcafef6bac6a25e9fc499d

Changed in fuel:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.