[Python-modules-commits] [plainbox] 04/10: Silence setup failure of the logging subsystem

Sylvain Pineau spineau-guest at moszumanska.debian.org
Fri Dec 4 16:13:54 UTC 2015


This is an automated email from the git hooks/post-receive script.

spineau-guest pushed a commit to tag debian/0.24-1
in repository plainbox.

commit 975fa3cd1f634456ab164ca24e663e4c8a9def5d
Author: Zygmunt Krynicki <zygmunt.krynicki at canonical.com>
Date:   Thu Oct 8 10:13:54 2015 -0700

    Silence setup failure of the logging subsystem
    
     The logging subsystem has a feature that displays two lines of warnings
     if the per-user log file cannot be created. This leads to spurious
     errors when plainbox is invoked from a build environment. Before a
     better solution is found this warning is disabled as all of the
     subsequent, relevant, logging messages are display either way.
    Bug-Ubuntu: https://bugs.launchpad.net/checkbox/+bug/1262898
    Forwarded: yes
    Last-Update: 2014-03-18
    
    Patch-Name: silence-logging-failure
---
 plainbox/impl/logging.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/plainbox/impl/logging.py b/plainbox/impl/logging.py
index 85fe7dd..6e66da0 100644
--- a/plainbox/impl/logging.py
+++ b/plainbox/impl/logging.py
@@ -94,10 +94,6 @@ class LoggingHelper:
             try:
                 os.makedirs(self.log_dir, exist_ok=True)
             except OSError as error:
-                logger.warning(
-                    _("Unable to create log directory: %s"), self.log_dir)
-                logger.warning(_("Reason: %s. All logs will go to "
-                                 "console instead."), error)
                 config_dict = self.DEFAULT_CONSOLE_ONLY_CONFIG
         # Apply the selected configuration. This overrides anything currently
         # defined for all of the logging subsystem in this python runtime

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/plainbox.git



More information about the Python-modules-commits mailing list