Merge "Using oslo_log instead of logging."
This commit is contained in:
commit
a2c82d6f3f
@ -10,7 +10,6 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import logging
|
||||
import os
|
||||
import pecan
|
||||
|
||||
@ -84,7 +83,7 @@ def build_server(conf):
|
||||
|
||||
LOG.info(_LI('Starting server in PID %s') % os.getpid())
|
||||
LOG.info(_LI('Configuration:'))
|
||||
conf.log_opt_values(LOG, logging.INFO)
|
||||
conf.log_opt_values(LOG, log.INFO)
|
||||
|
||||
if host == '0.0.0.0':
|
||||
LOG.info(_LI(
|
||||
|
@ -11,8 +11,6 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import logging
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
from oslo_policy import opts as policy_opts
|
||||
@ -44,7 +42,7 @@ def prepare_service(args=None, conf=None, config_files=None):
|
||||
|
||||
keystone_client.setup_keystoneauth(conf)
|
||||
log.setup(conf, 'vitrage')
|
||||
conf.log_opt_values(LOG, logging.DEBUG)
|
||||
conf.log_opt_values(LOG, log.DEBUG)
|
||||
messaging.setup()
|
||||
|
||||
return conf
|
||||
|
Loading…
Reference in New Issue
Block a user