Use oslo_log instead of logging

Some modules can be converted to use oslo_log instead of logging
lib.

Change-Id: I00a676ef266f47590f8c46d4a1a4eb876ab1f27d
This commit is contained in:
Zhihai Song 2015-12-25 15:56:14 +08:00 committed by Zhihai Song
parent 0e34ac12d5
commit bee322de62

View File

@ -24,7 +24,6 @@ import errno
import functools
import hashlib
import inspect
import logging as std_logging
import os
import pyclbr
import random
@ -215,7 +214,7 @@ class RootwrapDaemonHelper(RootwrapProcessHelper):
# rootwrap to honor the same set of flags in kwargs and to ensure
# that we don't regress any current behavior.
cmd = [str(c) for c in cmd]
loglevel = kwargs.pop('loglevel', std_logging.DEBUG)
loglevel = kwargs.pop('loglevel', logging.DEBUG)
log_errors = kwargs.pop('log_errors', None)
process_input = kwargs.pop('process_input', None)
delay_on_retry = kwargs.pop('delay_on_retry', True)