Stop using mitogen root logger in more modules, remove unused loggers
This commit is contained in:
parent
212f6a3529
commit
7379144a12
|
@ -41,7 +41,7 @@ import mitogen.parent
|
|||
from mitogen.core import b
|
||||
|
||||
|
||||
LOG = logging.getLogger('mitogen')
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
# Python 2.4/2.5 cannot support fork+threads whatsoever, it doesn't even fix up
|
||||
# interpreter state. So 2.4/2.5 interpreters start .local() contexts for
|
||||
|
|
|
@ -28,15 +28,10 @@
|
|||
|
||||
# !mitogen: minify_safe
|
||||
|
||||
import logging
|
||||
|
||||
import mitogen.core
|
||||
import mitogen.parent
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Options(mitogen.parent.Options):
|
||||
container = None
|
||||
username = None
|
||||
|
|
|
@ -28,15 +28,10 @@
|
|||
|
||||
# !mitogen: minify_safe
|
||||
|
||||
import logging
|
||||
|
||||
import mitogen.core
|
||||
import mitogen.parent
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Options(mitogen.parent.Options):
|
||||
pod = None
|
||||
kubectl_path = 'kubectl'
|
||||
|
|
|
@ -28,15 +28,10 @@
|
|||
|
||||
# !mitogen: minify_safe
|
||||
|
||||
import logging
|
||||
|
||||
import mitogen.core
|
||||
import mitogen.parent
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Options(mitogen.parent.Options):
|
||||
container = None
|
||||
lxc_attach_path = 'lxc-attach'
|
||||
|
|
|
@ -28,15 +28,10 @@
|
|||
|
||||
# !mitogen: minify_safe
|
||||
|
||||
import logging
|
||||
|
||||
import mitogen.core
|
||||
import mitogen.parent
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Options(mitogen.parent.Options):
|
||||
container = None
|
||||
lxc_path = 'lxc'
|
||||
|
|
|
@ -49,7 +49,7 @@ except NameError:
|
|||
from mitogen.core import any
|
||||
|
||||
|
||||
LOG = logging.getLogger('mitogen')
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
auth_incorrect_msg = 'SSH authentication is incorrect'
|
||||
password_incorrect_msg = 'SSH password is incorrect'
|
||||
|
|
|
@ -81,7 +81,7 @@ class SetupBootstrapProtocol(mitogen.parent.BootstrapProtocol):
|
|||
|
||||
def _on_password_prompt(self, line, match):
|
||||
LOG.debug('%r: (password prompt): %r',
|
||||
self.stream.name, line.decode('utf-8', 'replace'))
|
||||
self.stream.name, line.decode('utf-8', 'replace'))
|
||||
|
||||
if self.stream.conn.options.password is None:
|
||||
self.stream.conn._fail_connection(
|
||||
|
|
|
@ -39,7 +39,6 @@ import mitogen.master
|
|||
import mitogen.parent
|
||||
|
||||
|
||||
LOG = logging.getLogger('mitogen')
|
||||
iteritems = getattr(dict, 'iteritems', dict.items)
|
||||
|
||||
if mitogen.core.PY3:
|
||||
|
|
Loading…
Reference in New Issue