allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [31/50] git commit: [#4894] let logging configuration errors be fatal
Date Wed, 19 Sep 2012 18:43:27 GMT
[#4894] let logging configuration errors be fatal


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/4de3c397
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/4de3c397
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/4de3c397

Branch: refs/heads/master
Commit: 4de3c3976ea8f1a72728f89bcc6b7e963dc3b33b
Parents: c7b1b26
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Mon Sep 10 19:34:17 2012 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Mon Sep 10 19:34:17 2012 +0000

----------------------------------------------------------------------
 Allura/allura/command/base.py |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/4de3c397/Allura/allura/command/base.py
----------------------------------------------------------------------
diff --git a/Allura/allura/command/base.py b/Allura/allura/command/base.py
index a4ea93f..6bc7f27 100644
--- a/Allura/allura/command/base.py
+++ b/Allura/allura/command/base.py
@@ -42,14 +42,9 @@ class Command(command.Command):
         if self.args[0]:
             # Probably being called from the command line - load the config file
             self.config = conf = appconfig('config:%s' % self.args[0],relative_to=os.getcwd())
-            # Configure logging
-            try:
-                # ... logging does not understand section#subsection syntax
-                logging_config = self.args[0].split('#')[0]
-                logging.config.fileConfig(logging_config, disable_existing_loggers=False)
-            except Exception: # pragma no cover
-                print >> sys.stderr, (
-                    'Could not configure logging with config file %s' % self.args[0])
+            # ... logging does not understand section#subsection syntax
+            logging_config = self.args[0].split('#')[0]
+            logging.config.fileConfig(logging_config, disable_existing_loggers=False)
             log = logging.getLogger('allura.command')
             log.info('Initialize command with config %r', self.args[0])
             load_environment(conf.global_conf, conf.local_conf)


Mime
View raw message