No log handler is set for middleware.auth_token
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-keystoneclient |
In Progress
|
Low
|
Kui Shi |
Bug Description
run test in python-
No handlers could be found for logger "keystoneclient
In keystoneclient/
the logging handler is not set for self.LOG, the warning info can not be processed except ejeceting "No handlers..." error.
logging.basicConfig will help to set the handler,
Cited from pydoc
-------
logging.basicConfig = basicConfig(
Do basic configuration for the logging system.
This function does nothing if the root logger already has handlers
configured. It is a convenience method intended for use by simple scripts
to do one-shot configuration of the logging package.
The default behaviour is to create a StreamHandler which writes to
sys.stderr, set a formatter using the BASIC_FORMAT format string, and
add the handler to the root logger.
Changed in python-keystoneclient: | |
assignee: | nobody → Kui Shi (skuicloud) |
Changed in python-keystoneclient: | |
importance: | Undecided → Low |
Fix proposed to branch: master /review. openstack. org/42048
Review: https:/