Barry Warsaw pushed to branch pr288-vetted at mailman / Mailman Core
Commits: 6308128c by Barry Warsaw at 2017-08-28T10:47:10-04:00 Fix the mailman.plugins logger name. - - - - - 2 changed files: - src/mailman/core/initialize.py - src/mailman/plugins/initialize.py Changes: ===================================== src/mailman/core/initialize.py ===================================== --- a/src/mailman/core/initialize.py +++ b/src/mailman/core/initialize.py @@ -152,7 +152,7 @@ def initialize_2(debug=False, propagate_logs=None, testing=False): # Check for deprecated features in config. config = mailman.config.config if len(config.mailman.pre_hook) > 0: # pragma: nocover - log = logging.getLogger('mailman.plugin') + log = logging.getLogger('mailman.plugins') log.warn( 'The [mailman]pre_hook configuration value has been replaced ' "by the plugins infrastructure, and won't be called.") @@ -163,7 +163,7 @@ def initialize_2(debug=False, propagate_logs=None, testing=False): try: plugin.pre_hook() except Exception: # pragma: nocover - log = logging.getLogger('mailman.plugin') + log = logging.getLogger('mailman.plugins') log.exception('Plugin failed to run its pre_hook: {}' 'It will be disabled and its components ' "won't be loaded.".format(name)) @@ -193,7 +193,7 @@ def initialize_3(): """ # Run the plugin post_hooks. config = mailman.config.config - log = logging.getLogger('mailman.plugin') + log = logging.getLogger('mailman.plugins') if len(config.mailman.post_hook) > 0: # pragma: nocover log.warn( 'The [mailman]post_hook configuration value has been replaced ' ===================================== src/mailman/plugins/initialize.py ===================================== --- a/src/mailman/plugins/initialize.py +++ b/src/mailman/plugins/initialize.py @@ -28,7 +28,7 @@ from zope.interface.exceptions import DoesNotImplement from zope.interface.verify import verifyObject -log = logging.getLogger('mailman.plugin') +log = logging.getLogger('mailman.plugins') @public View it on GitLab: https://gitlab.com/mailman/mailman/commit/6308128cff334163b248dbf368b557b723ff9993 --- View it on GitLab: https://gitlab.com/mailman/mailman/commit/6308128cff334163b248dbf368b557b723ff9993 You're receiving this email because of your account on gitlab.com.
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org