Stop using mitogen root logger in more modules, remove unused loggers

pull/612/head
David Wilson 5 years ago
parent 212f6a3529
commit 7379144a12

@ -41,7 +41,7 @@ import mitogen.parent
from mitogen.core import b 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 # 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 # interpreter state. So 2.4/2.5 interpreters start .local() contexts for

@ -28,15 +28,10 @@
# !mitogen: minify_safe # !mitogen: minify_safe
import logging
import mitogen.core import mitogen.core
import mitogen.parent import mitogen.parent
LOG = logging.getLogger(__name__)
class Options(mitogen.parent.Options): class Options(mitogen.parent.Options):
container = None container = None
username = None username = None

@ -28,15 +28,10 @@
# !mitogen: minify_safe # !mitogen: minify_safe
import logging
import mitogen.core import mitogen.core
import mitogen.parent import mitogen.parent
LOG = logging.getLogger(__name__)
class Options(mitogen.parent.Options): class Options(mitogen.parent.Options):
pod = None pod = None
kubectl_path = 'kubectl' kubectl_path = 'kubectl'

@ -28,15 +28,10 @@
# !mitogen: minify_safe # !mitogen: minify_safe
import logging
import mitogen.core import mitogen.core
import mitogen.parent import mitogen.parent
LOG = logging.getLogger(__name__)
class Options(mitogen.parent.Options): class Options(mitogen.parent.Options):
container = None container = None
lxc_attach_path = 'lxc-attach' lxc_attach_path = 'lxc-attach'

@ -28,15 +28,10 @@
# !mitogen: minify_safe # !mitogen: minify_safe
import logging
import mitogen.core import mitogen.core
import mitogen.parent import mitogen.parent
LOG = logging.getLogger(__name__)
class Options(mitogen.parent.Options): class Options(mitogen.parent.Options):
container = None container = None
lxc_path = 'lxc' lxc_path = 'lxc'

@ -49,7 +49,7 @@ except NameError:
from mitogen.core import any from mitogen.core import any
LOG = logging.getLogger('mitogen') LOG = logging.getLogger(__name__)
auth_incorrect_msg = 'SSH authentication is incorrect' auth_incorrect_msg = 'SSH authentication is incorrect'
password_incorrect_msg = 'SSH password 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): def _on_password_prompt(self, line, match):
LOG.debug('%r: (password prompt): %r', 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: if self.stream.conn.options.password is None:
self.stream.conn._fail_connection( self.stream.conn._fail_connection(

@ -39,7 +39,6 @@ import mitogen.master
import mitogen.parent import mitogen.parent
LOG = logging.getLogger('mitogen')
iteritems = getattr(dict, 'iteritems', dict.items) iteritems = getattr(dict, 'iteritems', dict.items)
if mitogen.core.PY3: if mitogen.core.PY3:

Loading…
Cancel
Save