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

This commit is contained in:
David Wilson 2019-08-04 17:07:49 +01:00
parent 212f6a3529
commit 7379144a12
8 changed files with 3 additions and 24 deletions

View File

@ -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

View File

@ -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

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -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(

View File

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